facebook-graph-api

Instagram Basic Display API Pagination

↘锁芯ラ 提交于 2020-05-28 06:49:19
问题 Is there anyway to use paging for the media results obtained using the Instagram Basic Display API? I've read the following documentations but they don't have any examples for using pagination: https://developers.facebook.com/docs/instagram-basic-display-api/reference/media/children https://developers.facebook.com/docs/graph-api/using-graph-api#paging I would like to limit the media returned in the response e.g. media 1-15 for the first call, then get the next set e.g. 16-30 in the next call.

Facebook throwing strange error when attempting to create custom audience with sandbox ad account

我与影子孤独终老i 提交于 2020-05-24 03:52:07
问题 My team has had a FB marketing/business account for 2 years now, and we opened our sandbox account around that time. However, when I run my script to create an audience for the sandbox account, I receive this error: status: 400, response: { error: { message: '(#2654) Customer List Audiences Are Not Available: Ad accounts owned by businesses new to Facebook Products can create customer file Custom Audiences after several weeks of following our policies.', type: 'OAuthException', code: 2654,

New business (BusinessManager) can't share custom audience

◇◆丶佛笑我妖孽 提交于 2020-05-17 06:14:05
问题 Note : This question is very close (but not identical) to this one Facebook throwing strange error when attempting to create custom audience with sandbox ad account I managed to create my custom audience by uploading customer list (as opposed to this guy), but I'm unable to share it with an ad-account owned by different BusinessManager because Facebook says Ad accounts owned by businesses new to Facebook Products can share customer file Custom Audiences with another business's ad account

Ads Insights API Website Conversions not Available

霸气de小男生 提交于 2020-05-14 07:45:05
问题 I am getting the Facebook Ads Insights data via Marketing API v2.11 API end points: https://graph.facebook.com/v2.11/act_XXXXXXX/insights Where XXXXXXX is an Ad Account Id But I am not able to fetch the "Website Conversions" data.Also I don't see this field available in the insights fields list https://developers.facebook.com/docs/marketing-api/insights/fields/v2.11 So how to get this data via api? Thanks! 回答1: The "Website Conversions" data available on the fields action_values and actions .

Reading Facebook Dark Posts through Graph API

假装没事ソ 提交于 2020-05-11 11:20:53
问题 Darks posts are promoted unpublished posts on facebook. Basically it's a marketing tool to post ads. Thing is when a person comments on a dark post it does not show up in their notifications. Is there an API call to show the comments written to Facebook Dark posts? I have tried /promotable_posts?include_hidden=true and others but have not found a syntax that pulls up the dark posts let alone the comments associated with them. Any Help would be appreciated. (I have done something similar for

Reading Facebook Dark Posts through Graph API

点点圈 提交于 2020-05-11 11:18:14
问题 Darks posts are promoted unpublished posts on facebook. Basically it's a marketing tool to post ads. Thing is when a person comments on a dark post it does not show up in their notifications. Is there an API call to show the comments written to Facebook Dark posts? I have tried /promotable_posts?include_hidden=true and others but have not found a syntax that pulls up the dark posts let alone the comments associated with them. Any Help would be appreciated. (I have done something similar for

Get List of Restaurants from New York city using Facebook Graph API

半世苍凉 提交于 2020-04-11 00:58:49
问题 I want to get the list of all the restaurant pages that are based in New York using Facebook Graph API. I have downloaded the PHP-SDK and now I am stuck with this problem. I only need the id of the restaurant pages. <?php $url = "https://graph.facebook.com/search?q=restaurant&type=page"; $result = file_get_contents($url,true); $result = json_decode($result); //print_r($result); $i = 25; for($a=0;$a<$i;$a++) { $restaurantName = $result->data[$a]->name; $restaurantCategory = $result->data[$a]-

How to redirect to html page after login with facebook

≡放荡痞女 提交于 2020-04-07 07:59:09
问题 good afternoon, @peter or @PeterSmith I have been trying to use "login with facebook" on my website for 15 days. I have been using the code published by Facebook, at the link https://developers.facebook.com/docs/facebook-log... web / v2.2. My problem with this code is that I want the customer after login with his facebook (through the window that pop out) to be redirected to a specific page on my website, but what happens is that after the customer does login with your facebook, the client is

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

橙三吉。 提交于 2020-03-24 20:21:30
问题 I am trying to login through Facebook, collect some data over OAuth and then login to Firebase using the credential. I am however encountering an issue (please see logs below). CODE EXAMPLE @objc func signInWFB() { let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager() fbLoginManager.logIn(withReadPermissions: ["email","user_birthday","user_gender"], from: self) { (result, error) -> Void in if (error == nil) { let fbloginresult : FBSDKLoginManagerLoginResult = result! if (result?