facebook-graph-api

facebook graph api calls with appsecret_proof in python

两盒软妹~` 提交于 2021-02-07 04:20:08
问题 What is the right way of making graph api calls with appsecret_proof parameter in python? Is there any library that allows such thing? I was trying to use 'python for facebook' library but the documentation is literally nonexistent so I can't figure it out. 回答1: Here's how you could do that using the facebook-sdk: import facebook import hashlib import hmac def genAppSecretProof(app_secret, access_token): h = hmac.new ( app_secret.encode('utf-8'), msg=access_token.encode('utf-8'), digestmod

How can i find out facebook API version

你离开我真会死。 提交于 2021-02-07 03:39:20
问题 I have an app id and secret of a facebook app. But i am not owner, how can I find out its app version? I tried to go through fb graph api document but not lucky. Thank in advanced! 回答1: According to a somewhat relatable FAQ, you can check the facebook-api-version header in the response to determine the API version that had been used to process the request. Currently (as of December 26, 2015), the oldest active version is 2.0, so any unversioned calls will use the 2.0 API (until August 2016).

How can i find out facebook API version

雨燕双飞 提交于 2021-02-07 03:33:50
问题 I have an app id and secret of a facebook app. But i am not owner, how can I find out its app version? I tried to go through fb graph api document but not lucky. Thank in advanced! 回答1: According to a somewhat relatable FAQ, you can check the facebook-api-version header in the response to determine the API version that had been used to process the request. Currently (as of December 26, 2015), the oldest active version is 2.0, so any unversioned calls will use the 2.0 API (until August 2016).

Retrieving place will raise error in Facebook event download

回眸只為那壹抹淺笑 提交于 2021-02-05 11:11:58
问题 There is only one field of difference between the two Facebook Graph Query. One will succeed, oter will fail. Why place makes it different? Anyway the error message has no meaning at all. Using following query: 1105135492844152/events 来源: https://stackoverflow.com/questions/63566266/retrieving-place-will-raise-error-in-facebook-event-download

Retrieving place will raise error in Facebook event download

这一生的挚爱 提交于 2021-02-05 11:10:29
问题 There is only one field of difference between the two Facebook Graph Query. One will succeed, oter will fail. Why place makes it different? Anyway the error message has no meaning at all. Using following query: 1105135492844152/events 来源: https://stackoverflow.com/questions/63566266/retrieving-place-will-raise-error-in-facebook-event-download

Facebook Attribution API - List of attribution channels

若如初见. 提交于 2021-02-05 09:16:07
问题 I am really having a very hard time to use Facebook Attribution API. On the documentation it is mentioned that we can break your results down by source_channel but those channels are really general (picture bellow) Would it be possible to breakdown based on the top sources listed on https://business.facebook.com/attribution/<BUSINESS_ID>/performance ? 来源: https://stackoverflow.com/questions/65910864/facebook-attribution-api-list-of-attribution-channels

Are there any marketing API webhooks for modifying campaigns/adsets/ads

点点圈 提交于 2021-02-05 07:59:05
问题 In the program i am writing users can pause/unpause a campaign. I want to know if theres a way i can update the status of the campaign on my end if the user modify the campaign through the Facebook Ads manager. The only webhooks i could find are for lead generation. 回答1: It looks like i found the documentation hidden here You have to add ads_rules_engine Webhook to your app in order to recieve webhooks for 来源: https://stackoverflow.com/questions/52937040/are-there-any-marketing-api-webhooks

Facebook - custom audience ToS for sandbox account

对着背影说爱祢 提交于 2021-02-05 05:31:25
问题 Im trying to create custom audience using API. With the live ad account this works, but with sandbox account i get the below error: { "error": { "message": "Permissions error", "type": "OAuthException", "code": 200, "error_subcode": 1870034, "is_transient": false, "error_user_title": "Custom Audience Terms Not Accepted", "error_user_msg": "You'll need to agree to the Custom Audience terms before you can create or edit an audience of CUSTOM type. To accept, go to https://www.facebook.com/ads

Facebook - custom audience ToS for sandbox account

青春壹個敷衍的年華 提交于 2021-02-05 05:29:26
问题 Im trying to create custom audience using API. With the live ad account this works, but with sandbox account i get the below error: { "error": { "message": "Permissions error", "type": "OAuthException", "code": 200, "error_subcode": 1870034, "is_transient": false, "error_user_title": "Custom Audience Terms Not Accepted", "error_user_msg": "You'll need to agree to the Custom Audience terms before you can create or edit an audience of CUSTOM type. To accept, go to https://www.facebook.com/ads

Facebook - custom audience ToS for sandbox account

孤者浪人 提交于 2021-02-05 05:28:08
问题 Im trying to create custom audience using API. With the live ad account this works, but with sandbox account i get the below error: { "error": { "message": "Permissions error", "type": "OAuthException", "code": 200, "error_subcode": 1870034, "is_transient": false, "error_user_title": "Custom Audience Terms Not Accepted", "error_user_msg": "You'll need to agree to the Custom Audience terms before you can create or edit an audience of CUSTOM type. To accept, go to https://www.facebook.com/ads