Can you use Facebook "Test Users" to test a Messenger Bot? - facebook

I'm currently trying to make a Messenger Bot with the Messenger Platform. I have a Facebook page, app, everything set up, it currently works when I (an admin for the app) message it. So, I made a few test users to test it with more users. But, whenever I login as a test user, I can't seem to message the page. As a test user, I can't access the page, and a direct Messenger link gives an "access denied" page.
As an admin, I tried to add this test users as a "Tester" under the roles, but I also get more "access denied" messages.
So, is there a way to use a Facebook Test User to interact with my pre-approved Messenger Bot?

A working workaround was described here: http://developers.facebook.com/bugs/230322797329131/?hc_location=uf‌i
Kudos to Alex Garcia himself :)

Related

Are tfbnw.net email addresses suspicious for facebook login

I have a mobile app that allows logging in with facebook, when a user logs in I pull their email from the graph api but I just got a couple of logins with email addresses with #tfbnw.net domains which I guess is for test users while developing on facebook. I didnt generate these so is this someone doing something shady to login to my app or just expected behavior for some users given their settings?
Mobile app coded in react-native, using expo
Those seem to be the internal facebook QA team going through your APPs and manually checking if you're following all facebook's guidelines.
Facebook auditing your app basically.... or at least they did to mine because right after those #tfbnw.net email registrations came in, I checked my facebook app settings and sure enough, I got an alert and an email shortly after. But never received those #tfbnw.net emails before today on any other facebook logins.
I have checked my account and it looks like a generic test user Open Graph Test User gets created automatically, according to which product you enable in your app. It gets created for example, if you enable facebook login or messenger platform.
not something shady IMHO

read_page_mailboxes permission with Messenger ChatBot

I'm building a Messenger ChatBot wich can handle automated answers and can switch to human conversation with Messenger Handover Protocol. My app is in development and I requested publish_pages, read_page_mailboxes and manage_pages to do that (I got an extended Page token) and It worked perfectly !
Now, I'm facing an issue. I Want to be in production and request permission for publish_pages, read_page_mailboxes and manage_pages and Facebook is asking for the plateform (like in the picture below) : I know I have to complete the other fields ... but
It's not a web app, neither and android app ... or somthing else ! It's a Messenger ChatBot.
How can I do to request permission properly ? Thanks.
You need to have special permission from facebook to use those permission in your app. Click 'Add Details' beside each of the permission and fill up the form properly with required use case scenarios. Then submit the app to facebook for app review. After couple of days your app and bot should be verified if everything is ok.

Using Facebook and Google Authentication

In my Angular2 app I am using Google, Facebook, Twitter and Github authentication. Twitter works fine. The problem is with Facebook and Google.
Facebook:
When I enter my username and password for Facebook login, it says App Not Set Up: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions. whereas while using twitter, the page which should show up on logging in appears.
Google:
When I am not logged in to any of the mail ids the Google authentication works fine. But if I am already logged in to any of my mail ids, then the authentication system takes that mail id itself and logs in to the app. Is there any way to make it such that the system asks which mail id I want to use, even when I am logged in through one id?
Any help would be greatly appreciated. Thanks.
You can force prompt with Google by setting custom parameters. This will give the user the option to switch accounts:
var provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({prompt: 'select_account'});
firebase.auth().signInWithPopup(provider);

Can't use test user to access Facebook page with Messenger Bot app

I am trying to setup my first Facebook bot by following this sample project in Glitch, connected to this quick start help page.
I have logged in with a real user, then created an app and added a messenger product as per the instructions. I have set the webhook, I have also created a page with this user, and subscribed the messenger bot to it using the app dashboard.
I can access the page with the real user and I can send messages to the page and the bot responds to those messages as expected. So far so good.
Now I would like to create test users, so that I can access this page and send messages with other users. I have followed the procedure indicated here to create such test users.
The problem is that those test users can't access the page: "Sorry, this content isn't available right now"
I have found this and this answers, which both point to this explanation.
Basically, the page the bot subscribes to must be created by one of the test users with manage_pages and pages_messaging permissions. Like this I can create other test users which can connect to the test page and send messages just fine. However, the bot is not properly subscribed to this new test page, despite following the provided steps. I followed all of them and got the success response in the subscription step:
https://graph.facebook.com/v2.9/me/subscribed_apps?method=POST&access_token=<TEST_USER_PAGE_ACCESS_TOKEN>
Still, the bot is not connected to the test page. I can send messages back and forth between test users on the test page, but the bot does not respond and I get no activity logs in the webhook.
In a nutshell:
If I create a page with a real user, I can subscribe the bot successfully to the page, but I can't access the page with test users.
If I create a page with a test user, I can access the page with other test users successfully, but I can't subscribe the bot to the page.
How can I solve this or at least troubleshoot it?
Facebook API v2.9
The test user cannot access your real facebook page but you can message your bot (logged in as a test user) via the messenger short link (m.me/your_bot_link).
I used that in the testing steps (and video screencast) for the app permissions review submission.

Facebook app - Do i need those permissions?

I created an app for my clients. They uses this app from their website to post on their Facebook Page (and as the Facebook Page).
they use a Facebook Login button to connect to Facebook (with an account that can publish post on the page) from their website,
they complete a form
when the form is submitted, an article is created on the website AND a post is created on the FaceBook Page.
I ask for publish_action permission and manage_page permission when the user connects.
Those permissions need a review from Facebook, so I ask for it but the FB team says that I "only need those permissions when I use a public-facing Login". Is that not the case?
Currently, my app only work when I connect with the account that created the app.
You do need those permissions, but if the App is for your client only you don´t need to get them reviewed. Just add your client as Admin, Developer or Tester of your App and the permissions will work for him without review.