facebook-access-token

Retriving Facebook posts from Profile via FB api

房东的猫 提交于 2019-12-11 20:22:46
问题 I have registered an app in facebook developers program and I can retrieve posts from facebook page using fb api, but I cannot retrieve posts from facebook profile. Should I use some different access token for both page or profile? Is there a different way for retrieving posts from facebook page and profile? Any help will be appreciated! 回答1: You may need the user_status permission. And you call the posts using this graph query {USER_ID}?fields=statuses 回答2: Prerequisite:- You need to have

Facebook graph API : can post on “me/feed” but not on “page_id/feed” (error : 1455002)

我是研究僧i 提交于 2019-12-11 09:07:54
问题 I guess the answer to this one is straightforward but I cannot find it. Any help would be very much appreciated. I. Use case The application (back-end in python / django) should write on a facebook page. II. Symptoms When running the code below on "me/feed", the post is correctly inserted When running the code below on "PAGE_ID/feed", there is an exception (see below in section IV.) The scope of the authorisation is publish_stream, manage_pages Also, the user_token is from a user in the test

FB.logout() called without an access token. all.js:54

痞子三分冷 提交于 2019-12-11 07:58:19
问题 I load the facebook SDK like this: (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); So, I get this error: FB.logout() called without an access token. all.js:54 How would I fix this? as its in the facebook SKD file?! 回答1: Try this code (function(d, s, id) { var

How does one get the app access token for debug_token inspection on Facebook?

喜夏-厌秋 提交于 2019-12-11 03:45:59
问题 It is suggested that whether your app uses code or token as your response_type you should perform an automated check on the access_token to confirm that the token belongs to the person the app expects it to belong to and that it was your app that generated the token. You are supposed to do this on GET graph.facebook.com/debug_token? input_token={token-to-inspect} &access_token={app-token-or-admin-token} where app-token is app_id|app_secret and token-to-inspect is the user's access_token. Also

Getting warning while creating a page access token with 'manage_pages' permission

冷暖自知 提交于 2019-12-11 03:45:28
问题 When I try to get a page_access token with 'manage_pages' permission, i get following warning The following permissions have not been approved for use: manage_pages. If you make your app public, they will not be shown to people using your app. Submit them for review or learn more. I am the admin of this facebook page. Trying to retrieve My Fanpage's reviews in my website, through php sdk v4. 回答1: From v2.0 onwards, the permissions other than public_profile , email and the user_friends need to

Facebook graph api explorer doesn't show 'Friends Data Permission' tab

☆樱花仙子☆ 提交于 2019-12-11 03:44:41
问题 Trying to use Facebook Graph API Explorer. when selecting 'Get Access Token' its only showing two tabs: 'User Data Permissions' and 'Extended Permissions'. its missing 'Friends Data Permissions'. Does anyone have any idea why? couldn't attach a photo as i don't have enough reputation. 回答1: All the friends_* permissions were removed in v2.0 来源: https://stackoverflow.com/questions/23612142/facebook-graph-api-explorer-doesnt-show-friends-data-permission-tab

Create Facebook access token without logging in

大憨熊 提交于 2019-12-11 02:34:16
问题 I want to receive the public posts of a defined facebook page in my app. I already integrated the FacebookSDK and created a new app in the Facebook developer console. My Request looks like this: new Request( null, "/176063032413299/feed", null, HttpMethod.GET, new Request.Callback() { public void onCompleted(Response response) { tv.setText(response.getRawResponse()); } } ).executeAsync(); The server answers, that I need an acceess token. But I don't want my users to be logged in, when they

Graph API v2.3 , Cannot pass a read permission (read_custom_friendlists) to a request for publish authorization

前提是你 提交于 2019-12-11 02:29:12
问题 I'm trying to add additional permission to access friends list in my Android App , there are many resources about old API graph but could not find anything for new API , so I tried to add new permission to array but it didn't work and I got above error. public void getProfileInformation() { AccessToken token = AccessToken.getCurrentAccessToken(); LoginManager.getInstance().logInWithPublishPermissions(LoginActivity.this, Arrays.asList(new String[]{"email", "publish_actions", "user_birthday",

access_token - Script to upload photo in fan page album

我怕爱的太早我们不能终老 提交于 2019-12-10 23:17:41
问题 I am developing an app to include in my page tab. In this app, the user will go take a picture with your webcam and the picture will sent to an especific album in my fan page. I found an script here: and he is working very well, but I've a problem, the script use an user access_token to upload the picture, dont's necessary ask permission of all users to upload the picture because the script use my administrator user to send to the page. The big problem is: The user access token expire after 2

How to get current Facebook access token on app start?

社会主义新天地 提交于 2019-12-10 19:16:31
问题 On app start I need to know if the user is logged in or not to show a login page or not. My first try was to call AccessToken.getCurrentAccessToken() , but this doesn't work, see https://stackoverflow.com/a/29854249/1016472 My 2nd try was to use the AccessTokenTracker but this doesn't work too. To use the AccessTokenTracker I have to initialize the Facebook SDK first. But during this initialization the access token is send to the tracker. The tracker isn't created at this time and can't