how to publish to user timeline after recent facebook api changes? - facebook-javascript-sdk

We have been using publish_actions permission with facebook javascript api to post to user timeline from the app. The feature stopped working and when i logged in to developers.facebook.com then there were few alerts saying that some changes were made recently. Upon further investigation, i found that publish_actions has been removed.
So i am wondering what is the replacement of publish_actions or how does one go about using post to user timeline after the recent facebook api change? I appreciate any help! Thanks!

https://developers.facebook.com/blog/post/2018/04/24/new-facebook-platform-product-changes-policy-updates/
Developers currently utilizing publish_actions are encouraged to switch to Facebook's Share dialogs for web, iOS and Android.

Related

Can't get my app reviewed in Facebook API

I can't get my app to be reviewed through the Facebook API.
The app is purely a facebook messenger bot, and the app type is "business".
I have configured the specific permissions I need, however I recieve an error that states "You do not have any platforms eligible for review. Please configure a platform on your Settings page."
I also cannot add my app domain in the basic settings, as whenever I press save changes, the url does not save and disappears.
Additionally there is no option to make my app live.
Any advice?
The error message
I am leaving this answer in the event someone else needs it. It was an answer suggested by Facebook support when I encountered the same problem.
Go into App Settings and add a platform "Website"
Just add your website URL.
If the requested permission is just Messenger based then the website will not be accessed or tested.

Botframework v4 - Facebook Channel - Operation returned an invalid status code 'Forbidden`

Last year I developed a chatbot with Microsoft Bot Framework that I integrated in the Facebook Messenger of a page. Everything worked fine until 16th of December (last successful log). The page is not used by a lot of people therefore the application might have worked also longer than that.
Today I tried to use the chatbot again and I did not get any response. In the Logs I just found the error message "Operation returned an invalid status code 'Forbidden`".
After a bit of Debugging I found out that the problem is sending messages back to the Facebook Messenger.
context.SendActivityAsync(...)
I did not change any configuration within my Azure Bot Channel registration recently. I am aware of the privacy changes within the Facebook API, but as I already struggle with sending a simple text response like "Hi" I assume that cannot be the problem. Also the permission scheme has changed for Facebook apps. I have the permission for "pages_messaging". Do I need another permission now? Or did I miss another change in the Facebook API?
Technical Details:
Facebook API Version v6 (tried also v9 but no change in behavior)
Chatbot based on .Net Core 2.1
Bot Builder SDK v 4.11
Any hints what I did wrong or where I can look for further information is much appreciated.
Edit: I tried to add a new page to my Facebook App and get following message:
There is a hint that a permission is missing, but I cannot find out which one I require. As I only send responses to FAQ's and if required handover to the customer service inbox I just requested the "pages_messaging" permission. Do I require any other permission now?
I found the problem. For everyone that might have the same problem:
In our case the administrator that added the Facebook pages to the application was removed from the admin permission list of the pages. After re-adding the admin permissions for the pages the bot started working again.

Facebook Messenger App Invalid Scope - permission: pages_messaging_subscriptions

I'm attempting to connect a Facebook Messenger App to one of my pages..
I've connected Facebook Messenger Apps to pages before.
But this is the first time I've received this error...
What gives?
This is a bug and we are currently working on it. In the meantime, please use our beta tier or generate the page access token through our API. To use the beta tier, you can access the following:
https://developers.beta.facebook.com/apps/89000000000000/messenger/
we got same error and here is helpful answer
https://developers.facebook.com/bugs/281723762198561/
In my case, my app was live which was preventing access token generation.
Just go to app dashboard and disable the live checkbox as below:

Bare bones Facebook integration demo app

So I just started looking into integrating FB into my app and whipped up this little test app. I wanted to have a bare bones app without all of the bs that's in the Hackbook demo app. Basically, it's overly complicated for what I want.
The problem is that something I'm doing isn't working. My app tries to authenticate with FB, but doesn't return auth tokens. Something else that I noticed is that...
If I have the facebook app installed... it switches to it, shows a white loading screen for a second, then dismisses it and pops back to my app.
If the facebook app isn't installed... it will open in safari and actually show the app approval window, let me login and then it pops back to my app.
Both ways fail with getting and storing the auth tokens however.
What the heck am I doing wrong? Would someone mind seeing if this code works for them?
Full source here: Deleted.
Thanks for looking.
It definitely sounds like you don't have your app registered in the Facebook developer portal.
https://developers.facebook.com/apps
Looks like Facebook just updated their SDK which now includes some simplified example apps. Much better than just hackbook.

Access ograph insights from another app without admin?

Been trying to get insights data from a page in another app (without admin), yet no luck.
Been using Facebook API to access 'insights' through Open Graph. I have two Facebook profiles:
one being the app holder
the other being some Facebook page not
related to the app.
I am able to get the data when the 'app holder' has admin rights on the 'Facebook page'.
I saw Odata app and tried that, yet I wanted to keep it within the Facebook app control.
I have also linked the application with the page, hoping that will work (yet no joy).
Am I missing some 'Facebook App setting' that I can use or is this not possible?
Any thoughts much appreciated.
Read the instructions on this page, it explains how to do it: obtaining a permanent facebook oauth access token