I am using react-native-fbsdk to use Facebook APIs in my react native project. I am able to implement login/share/logout functionalities using this but till now haven't found any way to use Facebook messenger APIs.
Is there any way I can integrate FB messenger API in a react native project using this library?
Thanks.
Here is how to do it with React Native's Linking:
Linking.openURL(`fb-messenger://share?link=${sharingUrl}`);
where sharingUrl is the link you want to attach.
Result
This will open Messenger app with the attached link and the user will be able to add a message to it and send it to his friends. (Caution: nothing will happen if the user does not have Messenger installed.)
Prefilling a message seems impossible however.
See the doc
Related
I am trying to build a chat bot which can automatically sent alert to users who subscribed to my own page. However I can not find any support from facebook messenger for this task. How can I implement it?
Unfortunately fb messenger is not an one stop shop solution yet. I'd recommend using this excellent npm module node_schedule.I guess it should fit your needs.
I was looking for a way to integrate my CodenameOne app with Facebook. Particularly to collect data aimed to improve the adds shown on Facebook to users who have, for example, installed the app. What I found for integration with Facebook on CN1 is (mainly) this https://www.codenameone.com/javadoc/com/codename1/social/FacebookConnect.html
This seems useful for publishing photos or posts to Facebook as a user, but not for gathering data as I need it. Is there a way to access this part of the Facebook SDK in CN1? If there isnĀ“t is this planned for the future?
The connect API is designed for authorization and authentication which need to be native. From that point on you can use the token against the standard Facebook Graph API.
I'm not really familiar with the marketing API but does it require functionality from the native SDK which isn't available in the current SDK?
I am developing an app with Ionic and I want the user to be able to send a preset message on his wall on facebook. I don't need any authentication with facebook. I know it was possible with native android app, with Intent. There is a facebook pluging for cordova but I want something lighter, I don't want to have to connect the user from facebook. So I was wondering if I could use a kind of Intent to do so. Thanks
With authorization, you can use the /me/feed endpoint. But keep in mind that prefilling the message is not allowed according to the platform policy.
Without authorization: https://developers.facebook.com/docs/sharing/android#triggering
Look at the example code, it should be fairly easy to create your own Cordova plugin with Java if there is no plugin yet. Or just try one of the existing ones, for example: https://github.com/ccsoft/cordova-facebook#share
I'd like to have a facebook or alike log-in plug-in feature for my website so that my users would just user their social account to log in to my website. What would you recommend? Thanks!
PS I'm using wordpress 3.3
Using oAuth you can achieve this. From facebook developer account you have to create an app id. Then use that app id to send the request.
Read https://developers.facebook.com/docs/facebook-login/login-flow-for-web/ It has got everything you would like to implement for social login using facebook.
https://wordpress.org/plugins/facebook/
here's one. compatible with wordpress 3.3. Also has a couple of advanced features for example being enabling the user to share stuff to his timeline.
Also, if you just require a simple login check this out: https://wordpress.org/plugins/oa-social-login/
This plugin allows the user to sign in from any of the popular social networks into your site.
Or, if you want to code a custom functionality, you should check facebook sdk.
I've been trying to get my as3 application to connect to facebook using it's SDK for flash. However most tutorials on internet talk about using php, js or flex.
Is there any way to login to facebook using only as3?
I wouldn't go near Adobe's swc for Facebook
Adobe doesn't maintain it, and since it simply maps the JS API and call it via ExternalInterface, you are better off implementing FB calls in your HTML in JS and call them yourself from AS3 via ExternalInterface.This ensures you will be using the latest JS API and not have a broken code everytime Facebook changes something.When Facebook changes something in their API you can update your JS code rather then be left helpless hoping that Adobe would allocate resources to update the Facebook swc.In short, using the native JS API is smoother. Good Luck!