Messenger Webhook subscription for other pages - facebook

I have a problem with Facebook webhooks. The page/feed webhook works fine (triggers without any problems) for any page that authenticates with my app.
But the problem is that messenger webhook works only for pages that are managed by the owner of the app, pages from other users don't work, even in development mode, when these people are added as Developers/Testers. I'm trying to create an integration for an external ticket system that will support adding messenger messages as chats/tickers on the inside. As I said before everything works fine for feed and also for messenger but only if integrated page is managed by app owner.
Is there a possibility to overcome this at all? Or is it done like this by design and won't work this way ever?
I can't seem to find anything about this, so I decided to write here, maybe someone will know something.

Turns out that were permissions missing - for "outside" usage except manage_pages,publish_pages you also have to add read_page_mailboxes,pages_messaging,pages_messaging_phone_number permissions and everything stars working if it is configured properly.

Related

FB Page Native Webhook (not 3rd party) not receiving message from a certain user

Does anyone also experienced this type of problem? Webhook works perfectly fine with the rest but just with 1 certain user I'm not receiving anything from the webhook. It's not even called from facebook
The user already tried to uninstall and install back the messenger application but still the same result. Maybe there's something in their settings that need to be turned on or what
I somehow confirmed that facebook API has some traffic issues and sometimes have a delay in showing messages that are sent through their APIs. So patience is a virtue :D

Making 'app' available to other people's pages

I've got incoming messages working via webhook, but what I cannot understand is how I make this available to other users.
I run a SaaS that's used by many different organisations, so I want to be able to give those organisations (who each have a subdomain on my domain) the ability to 'connect to facebook messenger', so that all of the messages to their facebook page (whatever that may be), come into their portal view on my platform.
The only way I can see this working, is by getting each user to register as a developer, and go through all the set up that I did to get my test example working.
But I must be missing something? What's the workflow to enable this, simply, so that users can connect in this way?
You can have multiple Facebook pages connected to your single Facebook app. But you would require permissions from Facebook for that. You can read about permissions here: https://developers.facebook.com/docs/facebook-login/permissions/

Facebook Suspicious Login work around from iPad

I am not sure if anyone has ran into the problem but it is really bugging me and affecting our uploading from our iPad to facebook.
I have a local server running XAMMP with a gallery of images displayed via a local web page. These images are from our Photobooths and automatically get added into the gallery when a photo is taken in the booth.
These can then be accessed on the local network via the iPad. Users can then login to facebook and share this images.
Because this is a shared iPad being used by multiple users, is there any way of getting users to login without having to answer security questions?? It used to be fine but now Facebook says the login is suspicious as it does to recognise the device.
I have created an App to post the photos to facebook through the Facebook Development site and it works perfectly from my account and many users, but some seem to get the suspicious login attempt and have to identify friends and date of birth etc.
Is there a correct way to do this?
Thank you Richard.
Is there a correct way to do this?
What you are experiencing is the “correct” way.
Facebook offers this as a security feature – a user can add his devices to his list of “known” devices, from which he will be able to login straight away, and have to answer additional security questions when logging in from a different, “unknown” device.
If users have this feature enabled, they should not be surprised by this happening in your scneario. It’s what they explicitly want, and they’re getting it.
So you should in no way try to mess with that, just because you might think this to be “uncool” or a “nuisance” – it’s not, it’s a feature offering extended security that the user wants and has explicitly chosen.

form submit leading to redirect after auth changes

After the recent auth changes, one application stopped submitting forms properly, and I can't figure out why. Here's my situation:
I have multiple apps that all point to the same codebase. Each app comes in with a separate identifier so i know which app to display. All of my apps are working perfectly except one, which happens to be an older app (I created it in the summer, the rest were created within the past couple weeks, post-migrations).
I am using the php sdk (3.1.1) and all of my forms have actions of action="mysite.com/controller/function" instead of "apps.facebook.com/appname/controller/function". As of yesterday (December 15), when my one app submits the form, the receiving page is not finding any facebook connection and thus is breaking.
Once again, for most of my apps the receiving function is able to connect via $this->facebook->getUser(). It's only the one app where that returns null.
How is this possible? All of my apps use the same codebase, and I've programmatically made sure their migrations all look like this, the setting of the apps that work:
migrations=
{
"disable_auth_methods":true,"secure_stream_urls":false,"december_rollup":true,"apprequest_
counts":true,"page_tab_iframe":true,"read_notifications_permission":false,"recent_activity"
:true,"app_profile_page_deprecation":false,"gdp_v2":false,"page_hours_format":false,"graph_
batch_api_exception_format":false
}
Is there a setting wrong with my app? How else is it possible that the same codebase can serve two apps and have them act differently? I feel like I've changed every app setting I could find to no avail.
By the way: I know it's possible to have the action be apps.facebook.com/nameofapp but it doesn't solve the problem as to why this worked and then doesn't now. I'd like to root out the problem.
I figured it out. I completely missed a setting, and in hindsight it's very simple. My canvas url for the non-working app was:
http://www.mysite.com
and my form action was:
http://mysite.com
all the other apps had a canvas url without the www. and they worked fine. apparently when it went from www. to mysite.com, it would lose its facebook connection and need to redirect to the permissions page.
I hope this helps someone else out.

Displaying MY public wall using AS3 without user login

I've been trying to get this to work for a while, but I've apparently missed something.
All I want is to have the latest 3 or so posts from my clients Facebook page to populate and animate in a screensaver that I am building using Flash (AS3).
So far, every time I try to bring anything in, it requires a complete oAuth login and account link, but it's only a one way exchange (read-only, absolutely no writing, posting or even linking, since it's a screensaver) I'm not even sure the client wants pictures or anything.
I am currently trying to use the facebook-actionscript-api, but there isn't an option for the "App Login" type of Authentication that would solve most of my problems.
I'm at wits end and about to have to tell my client it can't be done. At least they'll always have twitter...
I don't think it is possible to get facebook feeds without an accesstoken (even if they are public). So I guess you need to define an app within Facebook and add login stuff to your app so users can give permission to your app for basic access.
Maybe this article offers some help: http://www.adobe.com/devnet/facebook/articles/flex_fbgraph_pt1.html