facebook-graph-api

De-authorize a Facebook app using the new OpenGraph API

隐身守侯 提交于 2020-01-15 11:42:58
问题 I have this code to de-authorize my FB application for currently logged in user: FB.api({ method: 'Auth.revokeAuthorization' }); It's using the deprecated REST API. How do I do the same using the OpenGraph API with FB.api method? 回答1: I figured it out: FB.api("/me/permissions", "delete", function(response){}); 回答2: In graph API you can issue HTTP DELETE request to https://graph.facebook.com/_UID_/permissions this should deauthorize the app 来源: https://stackoverflow.com/questions/7533997/de

De-authorize a Facebook app using the new OpenGraph API

若如初见. 提交于 2020-01-15 11:42:34
问题 I have this code to de-authorize my FB application for currently logged in user: FB.api({ method: 'Auth.revokeAuthorization' }); It's using the deprecated REST API. How do I do the same using the OpenGraph API with FB.api method? 回答1: I figured it out: FB.api("/me/permissions", "delete", function(response){}); 回答2: In graph API you can issue HTTP DELETE request to https://graph.facebook.com/_UID_/permissions this should deauthorize the app 来源: https://stackoverflow.com/questions/7533997/de

De-authorize a Facebook app using the new OpenGraph API

懵懂的女人 提交于 2020-01-15 11:42:25
问题 I have this code to de-authorize my FB application for currently logged in user: FB.api({ method: 'Auth.revokeAuthorization' }); It's using the deprecated REST API. How do I do the same using the OpenGraph API with FB.api method? 回答1: I figured it out: FB.api("/me/permissions", "delete", function(response){}); 回答2: In graph API you can issue HTTP DELETE request to https://graph.facebook.com/_UID_/permissions this should deauthorize the app 来源: https://stackoverflow.com/questions/7533997/de

Frozen Title Attribute in Opengraph Debugger

痞子三分冷 提交于 2020-01-15 10:45:27
问题 I'm receiving an error in the object debugger that states: Attempted Frozen Title Change It appears that you are trying to change the property og:title from Home to [the title] If so, you are not allowed to for this object because too many actions have been published against it. It's scraping the tag: <meta property="og:title" content="[the title]" /> The [the title] value is what I want the title to appear as - however, the title is simply populating as 'Home' in the debugger. So two

Uncaught TypeError: FB.login is not a function

家住魔仙堡 提交于 2020-01-15 09:15:27
问题 I am Using Facebook JavaScript API to create login with feature with Facebook and fetch the user details from the API. When I am using the same code in normal way, I am getting the data fetched from from Facebook api. When I try to do the same thing with requireJS, I am Getting this error "Uncaught TypeError: FB.login is not a function" I have seen errors like undefined function but this new to me. The format which I am following https://developers.facebook.com/docs/javascript/howto/requirejs

Generate Facebook user picture using third_party_id

旧城冷巷雨未停 提交于 2020-01-15 08:33:05
问题 I've had a look through Facebook's online documentation and cannot find a way to manually construct a Facebook user's profile picture Uri using the user's third party ID ( third_party_id ) field. For example (doesn't work): https://graph.facebook.com/<FACEBOOK_THIRD_PARTY_ID>/picture?type=square http://developers.facebook.com/docs/reference/api/user/ third_party_id: An anonymous, but unique identifier for the user; only returned if specifically requested via the fields URL parameter Using

creating test users - method is not supported for native application

旧城冷巷雨未停 提交于 2020-01-15 07:39:06
问题 I'm trying to create a test user for my facebook web application. (apps.facebook.com/ <myappname> ). I browsed my firefox browser to the following URL: https://graph.facebook.com/<app_id>/accounts/test-users?installed=true&access_token=<app_id>|<app_secret> I got the following result: { "error": { "type": "OAuthException", "message": "(#15) This method is not supported for native apps" } } any ideas? thanks 回答1: Are you sure your application is configured correctly in http://www.facebook.com

Retrieving public posts from multiple Facebook pages at the same time using the Graph API

半世苍凉 提交于 2020-01-15 07:08:32
问题 I know this will let the user retrieve the latest 10 posts from cocacola page. https://graph.facebook.com/cocacola/posts/access_token=[####]&limit=10 Is there any way I can retrieve the latest 10 posts from cocacola and pepsi Facebook pages at the same time. Example: https://graph.facebook.com/cocacola&pepsi/posts/access_token=[####]&limit=10 Can anyone help? Thanks, Sami 回答1: For the example you quoted, it's https://graph.facebook.com/posts?ids=cocacola,pepsi&access_token=[####]&limit=10 In

How to log in using facebook in android app?

落爺英雄遲暮 提交于 2020-01-15 07:05:29
问题 How to authorize facebook sdk? and I after authorization how to get the user detail like name,surname,gender,date of birth, age. 回答1: you have to take a look at https://developers.facebook.com/docs/reference/api/ 回答2: Below code open facebook login dialog and on its listener you can get required data field facebook.authorize(Home.this,permission,new DialogListener() { public void onFacebookError(FacebookError e) { // TODO Auto-generated method stub } public void onError(DialogError e) { //

How to log in using facebook in android app?

喜夏-厌秋 提交于 2020-01-15 07:05:04
问题 How to authorize facebook sdk? and I after authorization how to get the user detail like name,surname,gender,date of birth, age. 回答1: you have to take a look at https://developers.facebook.com/docs/reference/api/ 回答2: Below code open facebook login dialog and on its listener you can get required data field facebook.authorize(Home.this,permission,new DialogListener() { public void onFacebookError(FacebookError e) { // TODO Auto-generated method stub } public void onError(DialogError e) { //