facebook-graph-api

ios upload image to facebook

怎甘沉沦 提交于 2020-01-06 05:00:12
问题 This is the most easy and simple code I have used to upload images to Facebook it works perfectly on my simulator and on my device in testing phase. But when I published my app to iTunes it 80% got crash and 20% made success to upload image to facebook. Why this is happening ? Xcode shows warning that "openActiveSessionWithPermissions is deprecated" if (FBSession.activeSession.isOpen) { [self UploadToFb]; } else // Take permissions { NSArray *permissions = [[NSArray alloc] initWithObjects: @

How do I use Facebook Login via Facebook App for iOS

两盒软妹~` 提交于 2020-01-06 04:24:05
问题 I have a little problem. I am sing Facebook's API to get users information. I am using the code that provide here: https://github.com/pedro1993/ios-howtos In those examples, when somebody logs in with Facebook they are taken to the Facebook app, whereas when in my app, Facebook is opened in a UIWebView. How can I stop that from happening and use the Facebook app? Here is an example: Peter 回答1: Follow this official tutorial instead https://developers.facebook.com/docs/facebook-login/ios/v2.0

Share Gif image on facebook in ios

╄→гoц情女王★ 提交于 2020-01-06 03:47:06
问题 how to share .gif image in Facebook from my ios app? i have tried png and jpg format it works . but when i share .gif file. it will just share as normal image not as an animated image. so if anybody had try it. please help me out to find solutions. 回答1: Source : Guide to Animated Gifs for Facebook If you try to upload a GIF to Facebook, a still image of the first frame will appear. However, there are three ways to try and outsmart the system. Make a Youtube video look like a GIF. Use a third

Facebook scraper not validating og:image url

折月煮酒 提交于 2020-01-06 02:36:09
问题 I am running some functions on my controller to come up with a custom meta tag url that is then taken and used on the opengraph image tag for facebook. This image gets put in a variable, that then gets displayed on a url used for scraping on facebook. I got it working the right way and now the linter comes back at me with this error. Object at URL 'http://mypage.org/pages/post.html?PostID=9192&prog=' of type 'website' is invalid because the given value '' for property 'og:image:url' could not

Facebook Graph API {user-id}/feed from others empty

╄→гoц情女王★ 提交于 2020-01-06 02:28:09
问题 I want to get /{user-id}/feed from another user (user B) rather than "me" (user A), but the query returns an empty list. I'm using the Graph API Explorer to make the queries, and I've got the Access Token with user_posts , user_status and read_stream permissions, but I can't get this information. In this thread is said that: Additionally the queried user needs to grant the app the read_stream permission. In this other thread they said: If the user is your app user authorized with read_stream

Why can't I use my ArrayList variable outside FacebookCallback

陌路散爱 提交于 2020-01-06 02:19:26
问题 Hi I am trying to implement Facebook login and getting friends list. I am storing my Friends'name and profile picture url into ArrayList<TaggedFriends> Where TaggedFriends class will have set and get methods. I am now working in Fragment class named MainFragment. Here, I am storing values into taggableFriends variable inside a FacebookCallback Session. But I can't access it to any other places I am trying to store it into SharedPreferences but when I try to store, it returning null value.

How to remove permissions offline_access and publish_stream in scope variable

扶醉桌前 提交于 2020-01-06 01:05:12
问题 I have error when I want login drupal 7 with facebook account and I use module hybridauth. like this: Invalid Scopes: offline_access, publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions From same question I found the answer and it is to remove permissions offline_access and publish_stream in scope variable but

More settings for the facebook php API

和自甴很熟 提交于 2020-01-05 19:20:15
问题 Maybe I searched completely in the wrong way, and the facebook documentation pretty much sucks in my opinion. I was wondering, I'm connecting to facebook with the settings below and that works (I'm able to retrieve the profile information of the logged in user allows my application to access his profile.) Are there other options I can set, like the callback url and the expiration (which I want to set to never, so I can save the token in my db and re-use it)? This is the config now: $facebook

Multiple Facebook App ID for Single Android Application

六月ゝ 毕业季﹏ 提交于 2020-01-05 17:01:47
问题 I have two Facebook App IDs - one for development and one for production. I already detect which environment I am in with my app, but for some reason, I can't seem to figure out how to switch between the development app id and the production app id. When I log in to Facebook, I use this logic to set my Facebook App ID: Session session = Session.getActiveSession(); if (session == null) { if (savedInstanceState != null) { session = Session.restoreSession(getActivity(), null, callback,

How to post local image with dialog text in facebook

这一生的挚爱 提交于 2020-01-05 12:40:56
问题 I have upload images with url image successful on this way NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"https://developers.facebook.com/docs/reference/dialogs/", @"link", @"http://fbrell.com/f8.jpg", @"picture", @"Facebook Dialogs", @"name", @"Reference Documentation", @"caption", @"Using Dialogs to interact with users.", @"description", nil]; AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[delegate facebook] dialog: