facebook-graph-api

Can't access friends's informations with the graph API

二次信任 提交于 2020-01-02 05:19:20
问题 I'd like to retrieve, for instance, a friend's birthday, using the graph API. So I pick a friend whose birthday my profile can see, go to the Graph API Explorer, generate an access token with the friends_birthday privilege, and input [friend_name]/?fields=birthday and... it doesn't return anything. The birthday field on the side is grayed out, with a mouse-over text that says "Field is empty or disallowed by the access token". The worst part is that it works fine for some friends, but not for

iOS: Facebook Login access token error: Falling back to loading access token from NSUserDefaults because of simulator bug

拟墨画扇 提交于 2020-01-02 04:51:05
问题 After configuring it based on the instructions I keep on getting this error and I am unable to successfully use Facebook Login on my app. I am running it on XCode 8.1 and using an iOS 10.1 simulator. I followed the steps on the Facebook iOS SDK guide and put the Facebook login button in my view controller. I displayed the NSUserdefaults and one of the keys is "com.facebook.sdk:serverConfiguration" so I believe it is saving there. - (void)viewDidLoad { [super viewDidLoad]; if (

Facebook stopped displaying article:author

别等时光非礼了梦想. 提交于 2020-01-02 04:36:07
问题 It looks like Facebook changed something in the last few days, I noticed the article:author information doesn't show up anymore (article:publisher still works) https://developers.facebook.com/docs/reference/opengraph/object-type/article It used to be working fine like this: <meta property="article:author" content="https://www.facebook.com/yovav"/> For example, if you share https://ufotoday.com/post/10061 on Facebook it should show the author. UPDATE 2 It is working now, I was able to add

Facebook login for group members

偶尔善良 提交于 2020-01-02 02:28:29
问题 I'm the administrator of a small group on Facebook, it has about 40-50 members. Now I'm building a webpage for the group which will authorize users using Facebook Login (I'm using Laravel + SammyK's LaravelFacebookSDK if that matters). Everything works fine, there is a problem though. I'd like to restrict login for only those who are members of the Facebook group. The best way would be using the /me/groups API, but that requires user_groups permission, which is restricted. Of course there are

Facebook oauth authorize URL and parameter options

我们两清 提交于 2020-01-02 02:02:08
问题 Facebook provides some documentation on the parameters of oauth login. Login Dialog OAuth 2 Parameters are: client_id = Your App ID redirect_uri = Your App Website URL display = page, popup, iframe, async, touch. How to display login. scope = permission names. Permissions your app is asking the user to grant to your app. state = a string included in the response back to your app. response_type = code or token or both. Used in different ways depending on authorization flow. Is there more

Reading data from Facebook graphObject

白昼怎懂夜的黑 提交于 2020-01-02 01:09:07
问题 A user has accepted my Facebook app. I can now access some of their data. It is returned as a graphObject , which contains something like: Facebook\GraphObject Object ( [backingData:protected] => Array ( [id] => 11111 [first_name] => Bob [gender] => male [last_name] => Builder [link] => https://www.facebook.com/app_scoped_user_id/11111/ [locale] => de_DE [name] => Bob Builder [timezone] => 2 [updated_time] => 2014-02-14T14:35:54+0000 [verified] => 1 ) ) Unfortunately I cannot get at the data

Uncaught TypeError: Cannot read property 'name' of undefined

。_饼干妹妹 提交于 2020-01-02 01:05:22
问题 I tried to fetch data using facebook api into form inputs. Now, everything went just fine until I tried to also fetch the location of the current user. If the current user have shared his location (Where he is living), then I get no problems. However, if the user hasn't shared his location on facebook, I am getting an error: Uncaught TypeError: Cannot read property 'name' of undefined Here is the code I've been using. If you have any idea how to solve it, please comment here :) <div id="fb

offline_access permission not present in Graph api explorer in facebook graph api

柔情痞子 提交于 2020-01-02 00:13:09
问题 i've created a facebook Application today for my website i'm requesting access_token through javascript sdk with scope=manage_pages,offline_access,read_insights i figured out that offline_access was not given for the application newly created rest of the permission was granted but i've already made two application through that i can able to get offline_access scope for my access token my question is, Is there any updates included in the new Javascript sdk . steps to reproduce: 1.create an

offline_access permission not present in Graph api explorer in facebook graph api

▼魔方 西西 提交于 2020-01-02 00:12:10
问题 i've created a facebook Application today for my website i'm requesting access_token through javascript sdk with scope=manage_pages,offline_access,read_insights i figured out that offline_access was not given for the application newly created rest of the permission was granted but i've already made two application through that i can able to get offline_access scope for my access token my question is, Is there any updates included in the new Javascript sdk . steps to reproduce: 1.create an

Share existing post to Facebook app by id/url using Graph API

南楼画角 提交于 2020-01-01 20:48:46
问题 So in my app I display some Facebook posts from a predefined page. I get the posts from my server (the server gets them from Facebook directly) and this way I avoid using the Facebook SDK. For each post, I have both the id and the URL and whenever a user presses on a post I open the Facebook app on that given post. Now I'd like to add the possibility for users to share these posts to their profile pages, but when a user opens a post (on the Facebook app) it doesn't appear any option to share