Ionic post to facebook wall - facebook

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

Related

How to use Facebook messenger api in react native

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

New Facebook Messenger integration doesn't support URL Scheme Suffix?

I'm developing a 2nd version of our app for Facebook Messenger to meet their new platform integration requirements described here:
https://developers.facebook.com/docs/messenger
I'm attempting to allow both apps to share the same Facebook App ID. This page from the iOS troubleshooting docs has a section on Sharing an app ID across Apps
https://developers.facebook.com/docs/ios/troubleshooting#testsharedialog
It shows you how to add URL Scheme Suffixes to your apps so that they can both live on the same phone yet share the same Facebook App ID.
I've done this and it works successfully so that both apps can use Facebook login without stepping on each others toes. However, it seems that doing so broke my integration with FB messenger, which was previously working.
After following the instructions on the troubleshooting link above and adding the fields for the URL Scheme suffix, the videos I send to FB messenger no longer have a Reply button on them. Media inside Messenger that was sent from my app no longer contains any tappable element that takes you back to my app.
Does anyone know if there's a way to get the URL Scheme Suffix working in a way that it still works with the new Messenger Platform?
Thanks!
Heard back from Facebook directly on this. Their response:
No it doesn't. Because we will try to open the scheme without suffix. How would we know which suffix you want to open from messenger? ... So no suffixes are not supported. Just use a different app id.

Facebook Login with WebWorks

I have been trying for some days now to login to facebook via a webworks application, I undesrtand that the FB.login can't work beacuse of a popup, and the oauth login has to go through a web server, I am currently trying to implement this plugin
https://github.com/rsweny/ChildBrowser-plugin-for-BlackBerry
but the readme file isn't really clear about how to implement, I understand that you need an ext directory in the app folder but not sure if I need to add something to the config.xml file or to any other.
Please help!
Thanks,
Jose.
I created some examples of how to integrate your app with Facebook, Twitter, and foursquare via OAuth. They're targeted for BlackBerry 10, but should work on earlier versions as well.
Note: I'll be updating them (for BlackBerry 10) to make use of the new ChildBrowser API.
OAuth Samples are available on GitHub # https://github.com/ctetreault/BB10-WebWorks-Samples

Facebook applications and WP7

I need to perform facebook post into the user wall from wp7 (but without using the nice built-in ShareLinkTask of mango, please don't ask me why, its a requirement).
So, lets say I must do it as I was in Wp7 before mango, the only way available I found, is based on building a facebook application and using that applicationId with the facebook sdk.
It works but I need to use an ad-hoc or a company account to create the app, I was not able to do both, it seems that comapny account cannot create apps, ad-hoc account are prohibited.
Is there a way to create a facebook app withouth using a personal account ?
Is it really necessary to create a facebook app to make a wp7 app post to facebook (without using the ShareLinkTask of mango).
thanks to all
There is no other way to post on somebody's wall. You have to use the SDK and to register your app on Facebook because the user has to explicitly authorize your applications to post on his wall.
Even if you post a message from the built-in Windows Phone features, you'll see on Facebook that the message has been posted with the application Windows Phone. And you can retrieve the settings of that application in your facebook account settings:

Connect to Facebook using Facebook app on iPhone

How to connect to Facebook using the downloaded Facebook app, and not the embeeded Facebook connect. This is done for example with Rockmelt app.
What seems to be done, is to launche a third party app using the url like (fb:some paramaeters) and having a callback url with your app (myapp://authentification parameter ).
The interest of this is that if you are already logged on facebook, you just need to approve or not your app.
What is missing, is what are the parameters to acheive this with the downloaded facebook app.
Just use the supplied Facebook Connect library as it handles all this for you. FBConnect by default will use single sign on either via the browser or the facebook app if already installed.
You can examine the source code of the FBConnect library to see how this is done if you wish, but I'd suggest that re-inventing the wheel is perhaps not the best way to go.