facebook-graph-api-v2.0

Facebook Graph Api 2.1 get userid from username

你说的曾经没有我的故事 提交于 2019-12-06 19:24:01
问题 I am looking for a solution which can provide me user id from profile url or fb username example :http://facebook.com/username get userid of this url and also when I try to read friends (I have friend related permission), I am getting blank data array ex: graph api requ: https://graph.facebook.com/v2.1/me/friends?access_token=xxxxx response: { "data": [ ], "summary": { "total_count": 455 } } Please let me know how can I get friend list and userid using username in Facebook graph api v2.1 回答1:

Facebook Graph Api 2.1 get userid from username

一曲冷凌霜 提交于 2019-12-05 01:08:43
I am looking for a solution which can provide me user id from profile url or fb username example :http://facebook.com/username get userid of this url and also when I try to read friends (I have friend related permission), I am getting blank data array ex: graph api requ: https://graph.facebook.com/v2.1/me/friends?access_token=xxxxx response: { "data": [ ], "summary": { "total_count": 455 } } Please let me know how can I get friend list and userid using username in Facebook graph api v2.1 graph.facebook.com/username has stopped working. There is an unpleasant workaround. In my limited testing,

How to programmatically invite Facebook friends on a website

一个人想着一个人 提交于 2019-12-04 17:13:08
问题 The functionality that I need is to show a list of Facebook friends to the user on the website page with custom design, where the user can select some of them and send invites. In API v2.0 it's possible to get a list of friends this way: FB.api('/me/taggable_friends', function (response) { ... }); But it doesn't return real users' ID that I need for invites with the next function call: FB.ui({ method: 'apprequests', message: invite_text, to: 'user_id_1, user_id_2' }, function (response) { ...

Facebook Image URL gets expired

那年仲夏 提交于 2019-12-04 09:51:50
问题 I am pulling Facebook posts using facebook-graph API, now the problem is Image gets expired after few days. I have the following URL for a single Image Old Image URL which got expired https://scontent-a.xx.fbcdn.net/hphotos-xfp1/v/l/t1.0-9/p180x540/14377_340369866155028_6836158858133154924_n.jpg?oh=7ed0d8818ad54fac851b036d24f5e674&oe=55579EE3 New Image working URL Is https://scontent-sin1-1.xx.fbcdn.net/hphotos-xfa1/v/l/t1.0-9/14377_340369866155028_6836158858133154924_n.jpg?oh

Get Facebook User ID with Facebook App Scope ID

China☆狼群 提交于 2019-12-04 02:32:09
问题 Is it possible to get origin facebook id from facebook app scope id? I have 2 apps that shares the same database, so that user only need to sign up in one app in order to login both. This was working until facebook update their api from 1.0 to 2.0. Now, each user will have different fb scope id in each of them. I can't use fb id reference to the same user obj anymore. 回答1: You will not be able to get the global user id. But there are other methods to be able to know. And it is all described

Facebook Graph API rejects newly created access token

旧时模样 提交于 2019-12-03 18:32:38
问题 Earlier today, the Facebook login flow of our web application stopped working for some users. When we try to fetch the current profile, an error is returned. It claims that the access token we just generated by redirecting the user to the OAuth login flow has been rejected. The reason given is: The access token is invalid since the user hasn't engaged the app in longer than 90 days To me, this makes no sense since we do not store the access token anywhere except for the current session and

Facebook Image URL gets expired

混江龙づ霸主 提交于 2019-12-03 04:14:16
I am pulling Facebook posts using facebook-graph API, now the problem is Image gets expired after few days. I have the following URL for a single Image Old Image URL which got expired https://scontent-a.xx.fbcdn.net/hphotos-xfp1/v/l/t1.0-9/p180x540/14377_340369866155028_6836158858133154924_n.jpg?oh=7ed0d8818ad54fac851b036d24f5e674&oe=55579EE3 New Image working URL Is https://scontent-sin1-1.xx.fbcdn.net/hphotos-xfa1/v/l/t1.0-9/14377_340369866155028_6836158858133154924_n.jpg?oh=2f7ad72fa36fc026ad2bdcc1b0284146&oe=55C87432 I am frustrated with this issue, what could be the solution of it? What i

WebAPI Facebook login returning Access Denied when removing permissions

六月ゝ 毕业季﹏ 提交于 2019-12-02 06:44:09
问题 I have a client app (written with Xamarin) for iOS and WP which uses a WebAPI with Facebook as the sole method of logging in. My issue is that when a user customises the required permissions and removes some of them, the WebAPI simply receives "access_denied" from either OWIN or Facebook (externally to my code). The app is also added to their Facebook account with the subset of restricted permissions they chose, which means on every subsequent login they also get "access denied". Also,

New iOS App struggling with Facebook Graph api v2.0

夙愿已清 提交于 2019-12-02 06:31:15
I'm new to app development, and I've been building a social iOS app that requires sending Facebook invites to join the app. Yesterday's release of Facebook Graph API 2.0 seems to have much stricter requirements on how to invite those not already part of the game. I'm trying to activate me/invitable_friends but I keep getting the same message: { "error": { "message": "(#15) This method is only accessible to Games.", "type": "OAuthException", "code": 15 } Their documentation mentions needing to be a Canvas app, so I added placeholder URL's as Canvas pages. Not sure if that's sufficient.

WebAPI Facebook login returning Access Denied when removing permissions

余生长醉 提交于 2019-12-02 04:46:35
I have a client app (written with Xamarin) for iOS and WP which uses a WebAPI with Facebook as the sole method of logging in. My issue is that when a user customises the required permissions and removes some of them, the WebAPI simply receives "access_denied" from either OWIN or Facebook (externally to my code). The app is also added to their Facebook account with the subset of restricted permissions they chose, which means on every subsequent login they also get "access denied". Also, because they did not successfully register with the WebAPI, I do not have a user access token for facebook so