Facebook-Bot | automated posting , group | Functional Testing library
kandi X-RAY | Facebook-Bot Summary
kandi X-RAY | Facebook-Bot Summary
Facebook-bot , automated posting,group scraping and post scheduling, written in python and selenium
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Facebook-Bot
Facebook-Bot Key Features
Facebook-Bot Examples and Code Snippets
Community Discussions
Trending Discussions on Facebook-Bot
QUESTION
Edit: The suggested answer does not work as the robots are not just randomly crawling from my index, they are visiting a specific link when it is entered in a FB message.
I've created a basic chat application in Flask on App Engine. It allows the user to invite others by adding their ID or by giving them a private sharelink that auto-adds who ever goes to it (similar to youtube or google drive).
A serious flaw I have found is that if a user posts the link into a facebook message, Facebook will crawl/visit the link and by design of my system add them as a user to the conversation. All of a sudden you'll see 3 random users join the conversation.
My chat system is completely anonymous and designed to be temporary so theres no login or authentication other than a unique key for each user saved in their session.
So Facebook bots visit the link, get assigned an ID and get authenticated into the conversation because they used the users share-link, is there a way I can stop this via either Flask/Python or App Engine? Could I IP ban facebook?
Some code for the sake of code, does this for every new visitor:
...ANSWER
Answered 2019-Aug-15 at 13:23For your case I would say that you can avoid that either on your side or on Google Cloud Platform side. To be more precise, you can reject some connections in your code or you can set firewall rules to your App Engine instance to reject connections coming from certain IPs. In the public documentation you can find more information about firewall rules when using GAE:
Code-wise you can check at this github repo which is addresses the issue of blocking certain IPs to your Flask app.
The last possible option is authentication, but as the chat is anonymous I guess that's not the solution you are looking for.
QUESTION
I'am building bot with microsoft bot framework. Successfully published on azure and connected with microsoft bot framework. For skype bot is working properly, but for facebook it shows an error :
{"error":{"message":"(#10) Cannot message users who are not admins, developers or testers of the app until pages_messaging permission is reviewed and the app is live.","type":"OAuthException","code":10,"error_subcode":2018028,"fbtrace_id":"AXwQF7NQvLs"}}
I followed instructions from here for my bot to facebook connection.
how long it takes to approve my application ? and is approving my app is my only problem in this case ?
...ANSWER
Answered 2017-May-03 at 03:00This sounds like if you haven't available your app to Public.
You can do that inside this URL:
https://developers.facebook.com/apps/YOURAPPID/review-status/
Inside this, you need to set the app available for the public.
QUESTION
Following examples show how to connect a bot to Facebook Messenger if it installed on Bot Framework Portal.
- https://docs.microsoft.com/en-us/bot-framework/channel-connect-facebook
- https://www.codeproject.com/Articles/1110201/Creating-A-Facebook-Bot-Using-Microsoft-Bot-Framew
But what if bot installed on Azure? What are my steps then? Where to take Callback URL and Verify Token values? How to connect correctly? Bot written on NodeJS and deployed as NodeJS Web App on Azure.
...ANSWER
Answered 2017-Aug-12 at 19:12Exactly the same steps...
First, to clarify: the bot is not installed on Bot Framework Portal (dev.botframework.com); you are just creating the bot and registering it. And it's there where you will enable the Facebook Messenger channel.
If your bot is hosted in Azure
, the only difference then would be that the URL of your bot in the Bot Framework portal will be the URL of your Web App (e.g. mybot.azurewebsites.net) there + /api/messages instead of any other URL.
All the information about how to get the Callback Url and the Token is explained at https://docs.microsoft.com/en-us/bot-framework/channel-connect-facebook#provide-webhook-callback-url-and-verify-token
If you are using Azure Bot Service (which I don't think so, because your question doesn't mention it), then the "portal" is embedded in Azure, at the settings of your bot.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Facebook-Bot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page