facebook-graph-api

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

丶灬走出姿态 提交于 2020-03-24 20:19:13
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

对着背影说爱祢 提交于 2020-03-24 20:18:54
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?

GAE and Facebook Connect: How to get age and gender of user?

☆樱花仙子☆ 提交于 2020-03-21 03:44:05
问题 I'm working with Google App Engine and Facebook Connect. I have found Facebook Python SDK at https://github.com/facebook/python-sdk/tree/master/examples/appengine and it has some examples for basic user login and getting their names and friends. How can I get the user's other information? I would like to have their age and gender for my app to work properly. I know it requires additional permissions to get that information but how do I do that? 回答1: You dont need any permission for Gender

The session of the Facebook Log Account of my website still exists

懵懂的女人 提交于 2020-03-16 09:15:27
问题 I use Facebook SDK 5 with an index.php and a profile.php(only for presentation the data). I use them for log in in my website with facebook account, but after the first time that someone logs in from my computer to his fb account I don't have the option to log in again. I automatically log in with his account. How can I delete the "past user data"? I've tried deleting the session but nothing happened. session_start(); unset($_SESSION['facebook_access_token']); unset($accesstoken); if (isset(

Android facebook api get friend's life events

时光怂恿深爱的人放手 提交于 2020-03-06 07:10:27
问题 I can see friends life event's in facebook app, but i can't retrieve it from my app through /me/feed or /me/home or by FQL: SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND is_hidden = 0 Is there any way(FQL or Graph API) to get friend's life events in my app? 回答1: Friend permissions are deprecated, you cannot get any details of your friends anymore. See the changelog for more information

Android facebook api get friend's life events

徘徊边缘 提交于 2020-03-06 07:09:21
问题 I can see friends life event's in facebook app, but i can't retrieve it from my app through /me/feed or /me/home or by FQL: SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND is_hidden = 0 Is there any way(FQL or Graph API) to get friend's life events in my app? 回答1: Friend permissions are deprecated, you cannot get any details of your friends anymore. See the changelog for more information

Getting ids_for_pages from Graph returns empty

…衆ロ難τιáo~ 提交于 2020-03-03 07:58:27
问题 I'm having some trouble connecting people across apps and bots in messenger. https://developers.facebook.com/docs/messenger-platform/connecting-accounts I've already associated my developers facebook app (with a Facebook log in and Messenger Products) in Business, as well as the page. My objective is in my server being able to identify the messenger user with the log in user in the app. So when the user would go to the messenger would have the same experience as in the app. The trouble is:

how do i share a post on facebook using restfb

霸气de小男生 提交于 2020-02-27 03:15:55
问题 this is my java code using resfb lib to post something on my facebook groups feed: FacebookClient fb=new DefaultFacebookClient(token); FacebookType message=fb.publish(pid+"/feed",FacebookType.class,Parameter.with("message", description)); now what do i do to share posted article? thanks a lot for your help! 回答1: Graph API doesn't provide an explicit share operation, but you can create a post which is a link to another post, which should be displayed as a share. Something like this: fb.publish

PHP Script problems in posting on the the wall of my facebook fan page and permanent value for $access_token [duplicate]

落爺英雄遲暮 提交于 2020-02-25 07:10:26
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: PHP SCRIPT issue with passing the uploaded image to facebook->api function I have this code and its working awsomely fine just and just only one problem i am not able to pass my uploaded image to facebook->api (whether its valid or not) and the following always echo echo 'Only jpg, png and gif image types are supported!'; i even remove the check on image type and try to get the image from $img = realpath($

Facebook API Friend Location object being returned with empty string for id and null for name

巧了我就是萌 提交于 2020-02-21 04:58:22
问题 Yesterday, when I retrieved my Facebook Friends from the Graph API using the query "me/friends?fields=id,location" 500+ came back with location data. Today, 500+ are returned with the location object, but only 36 have any data in the location object, the rest are returned as: "location": { "id": "", "name": null } You can reproduce it yourself in the Graph API Explorer. You'll see that some friends have legitimate locations, but the majority have the null values. Does anyone have any idea