All Questions
62
questions
1
vote
1
answer
89
views
Facebook API is sending a GET request instead of a POST to my Chatbot
When using Facebook Messenger to send a chat message to my Chatbot, I don't get a reply. Checking the server logs show that I am receiving a GET request whereas it should be a POST request.
This is ...
0
votes
1
answer
223
views
Is there a way to decode the string returned from AWS lambda to meta's whatsapp business api?
I am trying to setup a webhook in AWS Lambda (using API Gateway) for Meta's WhatsApp Business API. They have the following guidelines:
Whenever your endpoint receives a verification request, it must:
...
1
vote
0
answers
404
views
Publishing Post using Instagram API - Unable to obtain container ID
I'm trying to post an image to Instagram using the content publishing API
I've used the short-lived token and exchanged it for the long-lived token using:
import requests
url = "https://graph....
0
votes
1
answer
441
views
Facebook get AdImage url from image_hash
My code (python-business-sdk):
account = AdAccount(ad_account_id)
img = account.get_ad_images(params={'hashes': ['6b709f0275d0bdf18fb78ef08492ee79'})[0]
print(img['url']) # doesnt work
primt(img[...
1
vote
0
answers
273
views
Can't login with FBchat 1.9.7 python (failed)
Hi :) I use: https://fbchat.readthedocs.io/en/stable/index.html
I wanted to try make simple msg bot, but when I tried to login I have this error:
Attempt #1 failed, retrying
Traceback (most recent ...
1
vote
1
answer
225
views
Facebook Marketing API - How to limit the amount of ads from .get_ads()?
I am trying to pull insights about my ads on a daily basis.
I am firstly pulling the ad ids by using:
AdAccount("my ad account id").get_ads()
But this is pulling every single ad that has run ...
0
votes
1
answer
353
views
Using a loop to iterate through dates for a Facebook get_insights
I'm new to Python and am trying to establish an API connection to Facebook to pull advertising campaign data. I want to pull for 6-12 months at a time and the Facebook API doesnt seem to handle this - ...
0
votes
1
answer
389
views
How can you share someone else's post with the Facebook Graph API using Python?
I want to share posts from pages I do not have API access to. I just want to use the links of these posts to literally 'share' the post as if I 'shared' it manually in Facebook.
The documentation ...
0
votes
1
answer
72
views
Python script for searching on Facebook ads using Pipenv
I want to run a Python script on Facebook ads search, but I get stuck in the middle, hoping you can help me (please see below). For your information, I do have a Facebook API token, but it seems I ...
0
votes
1
answer
529
views
Spyder ''Import Facebook Error'' despite of install conda facebook sdk
I try to connect to facebook api with Python. I am using anaconda and also I get the following error:
I use anaconda
import json
import facebook
def main():
token = "--token-key--"
graph = ...
1
vote
0
answers
86
views
What's the best programmatic approach to mirror facebook page feed to a Whatsapp channel?
I have a facebook page which posts image content regularly on it's feed. I want to create a Whatsapp account (preferably a bot) which people can subscribe to with a message, and start receiving all ...
1
vote
1
answer
251
views
Facebook Graph API: Cannot pass categories array on Python
I'm trying to use Facebook's Graph API to get all the restaurants within a certain location. I'm doing this on Python and my url is
url ="https://graph.facebook.com/search?type=place¢er=14....
0
votes
0
answers
164
views
Insecure Login Facebook API
I want to create Facebook authorization in my django site. I find many libraries that can do this. I am using social_django (This is link for tutorial, not for docs). I am doing all written in ...
0
votes
1
answer
2k
views
Facebook requires v3.0 API
Two days ago facebook asked me to use version of sdk 3.0.
While running script I have this problem:
(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v3....
0
votes
0
answers
43
views
publish_actions permission in facebook sdk for python [duplicate]
I am working on app in django 1.11 with facebook-sdk (v. 2.12 for facebook).
I have problem with added permissions to publish content on wall. I got an error:
(#200) Requires either publish_actions ...