facebook-insights

How to further filter Facebook Graph API query on Graph API Explorer for my ad account?

戏子无情 提交于 2021-02-07 08:19:40
问题 I'm trying to get the ad spend and mobile app installs for my app using the Facebook Graph API v2.11 for marketing. In the Graph API Explorer, when I try /act_<my account>/campaigns?fields=insights{actions,spend}&time_range={'since':'2017-07-07','until':'2017-12-12'} In the output, under "insights", I get an object of this type: "data": [ { "actions": [ { "action_type": "comment", "value": "3" }, { "action_type": "like", "value": "33" }, { "action_type": "link_click", "value": "1531" }, {

Requesting page insight for Facebook getting error “Graph returned an error: An unknown error has occurred. ”

江枫思渺然 提交于 2021-01-28 06:04:59
问题 $helper = $fb->getRedirectLoginHelper(); $permissions = ['email','manage_pages','pages_manage_cta','publish_pages','publish_actions']; giving permissions. $loginUrl = $helper->getLoginUrl('http://localhost/Facebook/insight.php', $permissions); echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>'; facebook Insight code. $fb->setDefaultAccessToken($accessToken); Get user groups detail $requestPageInsights = $fb->request('GET', '/1364467436924381/insights/, $accessToken'); //Make a batch

Requesting page insight for Facebook getting error “Graph returned an error: An unknown error has occurred. ”

做~自己de王妃 提交于 2021-01-28 06:00:58
问题 $helper = $fb->getRedirectLoginHelper(); $permissions = ['email','manage_pages','pages_manage_cta','publish_pages','publish_actions']; giving permissions. $loginUrl = $helper->getLoginUrl('http://localhost/Facebook/insight.php', $permissions); echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>'; facebook Insight code. $fb->setDefaultAccessToken($accessToken); Get user groups detail $requestPageInsights = $fb->request('GET', '/1364467436924381/insights/, $accessToken'); //Make a batch

Not able to create ad creative using Facebook graph api

て烟熏妆下的殇ゞ 提交于 2020-05-22 09:31:09
问题 I'm making a Facebook ads application with Marketing API. I'd create an ad Sandbox account and using its access token, I've successfully created Campaign, AdSet and upload some pictures for making ads. Now from past few days, I'm trying to create Ad Creative through API but every time it showing error "Ads creative post was created by an app that is in development mode". Creation of Campaign and Adset working fine with API but AdCreation showing error. Without AdCreation, I'm not able to

Not able to create ad creative using Facebook graph api

烂漫一生 提交于 2020-05-22 09:30:50
问题 I'm making a Facebook ads application with Marketing API. I'd create an ad Sandbox account and using its access token, I've successfully created Campaign, AdSet and upload some pictures for making ads. Now from past few days, I'm trying to create Ad Creative through API but every time it showing error "Ads creative post was created by an app that is in development mode". Creation of Campaign and Adset working fine with API but AdCreation showing error. Without AdCreation, I'm not able to

Not able to create ad creative using Facebook graph api

北慕城南 提交于 2020-05-22 09:30:03
问题 I'm making a Facebook ads application with Marketing API. I'd create an ad Sandbox account and using its access token, I've successfully created Campaign, AdSet and upload some pictures for making ads. Now from past few days, I'm trying to create Ad Creative through API but every time it showing error "Ads creative post was created by an app that is in development mode". Creation of Campaign and Adset working fine with API but AdCreation showing error. Without AdCreation, I'm not able to

How to properly convert end_time timestamp into date

一笑奈何 提交于 2020-03-03 02:24:13
问题 I'm requesting data from Facebook Insights API with granularity set to a day, let's take likes as an example. My request goes to: PAGEID/insights/page_fan_adds_unique/day Response looks like this: { "data": [ { "id": "PAGEID/insights/page_fan_adds_unique/day", "name": "page_fan_adds_unique", "period": "day", "values": [ { "value": 3, "end_time": "2014-08-29T07:00:00+0000" }, { "value": 4, "end_time": "2014-08-30T07:00:00+0000" }, { "value": 1, "end_time": "2014-08-31T07:00:00+0000" } ],

Facebook post impressions are null in FQL stream query

…衆ロ難τιáo~ 提交于 2020-01-31 10:39:20
问题 According to the FQL Stream documentation the following query is supposed to return impression counts when run by an authenticated page owner, yet it never does. We have the page owner authenticating directly in the graph api explorer with extended permissions (read_stream, read_insights), but the impression counts are always null. Is anyone able to get this working? SELECT post_id, actor_id, message, impressions FROM stream WHERE actor_id = {owned_page} and source_id = {owned_page} 回答1: I

Facebook post impressions are null in FQL stream query

萝らか妹 提交于 2020-01-31 10:38:22
问题 According to the FQL Stream documentation the following query is supposed to return impression counts when run by an authenticated page owner, yet it never does. We have the page owner authenticating directly in the graph api explorer with extended permissions (read_stream, read_insights), but the impression counts are always null. Is anyone able to get this working? SELECT post_id, actor_id, message, impressions FROM stream WHERE actor_id = {owned_page} and source_id = {owned_page} 回答1: I

Facebook graph API Insights requests limit

◇◆丶佛笑我妖孽 提交于 2020-01-17 02:27:15
问题 I have an app which manages hundreds of Facebook pages. Now I need to make a dashboard which will show reports based on Facebook insights for every page but when I try to get the data from Facebook I am getting a message saying that I am reaching the requests limit and I am not able to make requests to Facebook Insights any more. For every page I get 10-15 metrics in a single request, but I have hundreds of pages. I found that the limit is 200 App request per hour, but for insights there are