How to open my iOS app from Facebook Messenger? - facebook-graph-api

I am building one of the FB Messenger Bot applications and i want to send my apps customer URL into messenger so that user can tap on it to open the app (The app is already installed on the device). This is app is not in the app store and just a demo for now.
How can i achieve this ? When i am sending customeURL:// as text back to messenger it identifies it as bad URL.
Thanks,

Have you tried adding some text before and after your URL?

Related

How to force link opening oustide of embedded browser / webview?

I setup a simple authentication system using python-social-auth-django. Everything is working fine on my computer and my mobile phone, but when I try to open login link from Messenger app with another phone (Huawei brand), the link opens inside Messenger's embedded browser and I get belows (same for Facebook and Google oauth).
Searching around it has something to do with new policy disabling authentication from embedded browser such as Messenger embedded browser.
What should I do either to force my login link to open outside of Messenger embedded browser or allow login with Facebook/Google oauth from WebViews browser ?
You can't sign in from this screen because this app doesn't comply with Google's secure browsers policy. If this app has a website, you can open a web browser and try signing in from there.
From my browser and own phone I open home link (from messenger app). This opens a browser window and login works fine.
From another phone, when I click the messenger link, it opens in embedded browser.

Facebook API page feed didn't send information to my webhook?

I'm admin of my test app, and my test page.
Now I'm doing a function get page's feed realtime by webhook, just only on development mode.
When I click test button on App's Dashboard, It has been sent to my webhook. But when I comment or like ... the post, facebook doesn't send even though I subscribed feed webhook.
With Messages, it has been sent successfully, but Feed doesn't.
I ask facebook support, so they said that:
"Applications will only be able to receive test webhooks sent from the
app dashboard while they are in development. No production data,
including that of app admins, developers, and testers, will be
delivered unless the app is live. In order to receive feed webhooks,
your app needs to be live and has to go through app review for
necessary permissions."
I understand that I can not get data from facebook even though it is under development mode.
So how can I get data returned by facebook to develop, test... apps in development mode.
Thanks so much.
It is not possible to run this service without an app review, since it is not possible to add the 'mange_pages' permission to a (test-)user within a development app. At the same time it is not possible to turn a testapp into live-mode. As the same is true vice versa the only solution is the app review to get information from a specific (test-)page.
For live testing i suggest to create a testuser and subscribe for information about the "user" to test your webhook.
You can check with GET graph.facebook.com/app-id/subscriptions, if your app is successfully subscribed to "page information". Graph API Documentation
As you already mentioned you can also send "page information" test calls to your endpoint.
UPDATE 18th Nov 2018
If you go to Webhook -> pages in your App Dashboard on https://developers.facebook.com you are able to notice, that Webhooks in dev mode do not work.
I've submitted a Bug report to Facebook for this issue, as there is no proper solution.
You can check it at : https://developers.facebook.com/support/bugs/1570460936387604/
I also don't get the fact that you can't test webhooks in dev mode, and you can't do the app review because you can't develop your app and show them for review.
Just a chicken and egg issue.

Facebook chat bot separate from normal chat

How can I have a chatbot separate from normal chat on my page? I am experimenting with a chatbot, I created a bot with webhooks configured and the bot is working fine as I expected(it's in test mode) but to interact with a bot I have to use the same chat window which is used for my support. Right now my page is using FB chat as a support desk, now I have seen pages using two different chat windows one for messages and one for the bot. How can I do that?
This is designed by Facebook to be what you're looking for "Handover protocol"
https://developers.facebook.com/docs/messenger-platform/handover-protocol

Push notification to IOs or Android from django webapp

I have my Django Web app and I want to make a mobile version but it will take me a while, so, I would like to know if it is possible to send push notifications to the mobile phone (either Android, Apple) from the webapp.
The client will run the website normally from the phone and I would like to send a notification when the process made is finished. How can I achieve that ? Do django signals have the effect of push notification ?
Thanks
You can connect QuickBlox to your app and that would be a way to go.
Here's the tutorial for iOS: http://quickblox.com/developers/SimpleSample-messages_users-ios
And this one is for Android: http://quickblox.com/developers/SimpleSample-messages_users-android
Hope that helps.

Like Button on Mobile App with out redirecting you to FB page

is there a way for mobile app developers to add FB functionality that allows you to “like” something without actually leaving the page/ app from which you are doing it in?
Yes. The Like Button is currently Facebook's only Social Plugin that is available for Mobile web apps.
How to implement it is described in Facebook's Mobile Web Tutorial.
Here is a simple example app with a Like Button.