facebook-graph-api

Facebook Explorer page showing BLANK page

て烟熏妆下的殇ゞ 提交于 2020-01-01 20:01:47
问题 When I try to visit this url https://developers.facebook.com/tools/explorer/145634995501895/ Its shows complete blank page. I tried with different browser. I tried with different internet connection. I trie on PC and phone. All Same What could be the reason? Am I blocked from using the explorer? 回答1: Try this link Press the button "Get Accces Token", "Get Access Token" again in the pop-up window (you don't need special permissions there) and then "Submit" button. 来源: https://stackoverflow.com

Querying FB Graph API feed with fields parameter?

元气小坏坏 提交于 2020-01-01 19:19:09
问题 what happens when a Facebook page is queried for its feed with Facebook Graph API (JS SDK) and a URL parameter fields (like for the post object) is added? I would like to load from the feed only the posts id's, shares, likes and comments, because the page is pretty active and the text data in JSON for 2 days is about 2MB (25 items)... I would hope one could do like this: FB.api('/SomePage?fields=id,shares,likes') , but I suppose the only fields you can access are the direct children (for feed

Is it possible to post a status update and adding an image file with facebook graph API?

别等时光非礼了梦想. 提交于 2020-01-01 19:17:09
问题 I want to post a status update to my feed and add a photo residing on disk, using the facebook graph api. Is this possible or must I provide be a hyperlink address to the image? I know it's possible to add a photo to an album using the Post object's source parameter but I'm looking for a way to do a status update with a image file attached. 回答1: It is definitely possible as we have published images directly to Albums and Walls using the Facebook C# API which posts to the graph API We use the

Can I upload photos to a wall belonging to a fan (company) page wall using the Facebook Graph API?

送分小仙女□ 提交于 2020-01-01 19:12:21
问题 I need to know if it's possible to make it so authorized users can upload photos to a fan page of a company (to the wall) using the graph API. Also, is it possible to become like (become a fan) of a company page through the api once the user is authorized. 回答1: Yes you can. You need to obtain your admin access token by using the Graph API explorer (https://developers.facebook.com/tools/explorer) and with a call to https://graph.facebook.com/{adminfacebookid}/accounts this will list all pages

What are the causes of (#210) User not visible

不想你离开。 提交于 2020-01-01 19:11:15
问题 Access token must be valid and contain publish_stream (checked, i do have valid access_token for the user who is posting to a friends wall User A must be friends with user B (checked, posting user is friends with the one to whose wall he is about to post) Posting use has app privacy settings set to "friends" (checked) ...? I'm using Graph API (https://graph.facebook.com/{FRIEND_ID}/feed) for posting the message and i'm getting an (#210) User not visible OAuthException. The stack about this

Deserialization of a Facebook JSON string?

好久不见. 提交于 2020-01-01 18:25:54
问题 I am not able to get my head around extracting the work_history, affiliations and current_loc of the facebook user from the JSON string that is generated after i run my fql query I have made this class : public class Data { public CurrentLocation current_location { get; set; } public WorkHistory[] work_history { get; set; } public EducationHistory[] education_history { get; set; } } public class EducationHistory { public string name { get; set; } public int? year { get; set; } public string

How to Invite Friends From Facebook to Android app ? - Gives Error

*爱你&永不变心* 提交于 2020-01-01 18:17:45
问题 I am working on an Android App. I am working to add "Invite Friend" feature to my app. It goes to my AppLinkUrl successfully but Show an Error. My Manifest code is as below- <!--Abhishek Tandon FB invitation Code--> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="com.tandon.mynewsapp//https://my_fb_url_here" /> </intent-filter>

issue with getting data from url

…衆ロ難τιáo~ 提交于 2020-01-01 18:06:26
问题 Here is the code I wrote NSString *str = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=CAADbwxRRgq8BANULcGGn3d4NPZB4LlP3tCL9YjYH3Nd0fD2XvgjG0qTECEmOsFhNhcu4NCdgYzQK3lYaATiedLRP4ZAIRgf8FBtDBYd22z5BrMabHlex12nZAbm8UfJTrPVRw5rjN8abi9"]; NSURL* url = [NSURL URLWithString:[str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSError* error = nil; NSData* data = [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:&error]; if (error) {

issue with getting data from url

我怕爱的太早我们不能终老 提交于 2020-01-01 18:06:08
问题 Here is the code I wrote NSString *str = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=CAADbwxRRgq8BANULcGGn3d4NPZB4LlP3tCL9YjYH3Nd0fD2XvgjG0qTECEmOsFhNhcu4NCdgYzQK3lYaATiedLRP4ZAIRgf8FBtDBYd22z5BrMabHlex12nZAbm8UfJTrPVRw5rjN8abi9"]; NSURL* url = [NSURL URLWithString:[str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSError* error = nil; NSData* data = [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:&error]; if (error) {

OAuthException: (#2) Failed to create any app request

大兔子大兔子 提交于 2020-01-01 17:56:08
问题 I am using following code to send request from application to user. Everything was fine, but suddenly it stops to work and I get an error: OAuthException: (#2) Failed to create any app request $config = array(); $config['appId'] = $this->app_id; $config['secret'] = $this->app_secret; $facebook = new Facebook($config); $url = "https://graph.facebook.com/oauth/access_token?client_id={$this->app_id}&client_secret={$this->app_secret}&grant_type=client_credentials"; $token = file_get_contents($url