How to invoke external apps from my Codename One app - facebook

I have developed an app for organizing and grouping of hashtags. One functionality I want to add to this app is the following: The user can copy his/hers tags and then should be able to switch to the desired social media app (in fact app or web page). Starting a web page is not a problem but how can I switch to another app (twitter, tumblr, youtube, facebook, atc. etc.) from my own app? I couldn't find any solution for that. Please help!
The complete list of apps I want to start is: Facebook, GooglePlus, Instagram, LinkedIn, Pinterest, Tumblr, Twitter, Vine, Vk, Youtube

You can just use Display.execute to launch Android/iOS apps implicitly e.g. this site lists the URL schemes for various apps including facebook.
On iOS you can also check if an app is already installed using the Display.canExecute(String) API.
For Android I couldn't find a conclusive list of URL's like that but generally googling "intent URI" with your desired network should provide you with the answer.

Related

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.

Is it possible to open Facebook share dialog (in Facebook app) from mobile web?

We have similar functionality for Twitter -- linking to "twitter://post?message=Hello" will open the Twitter app (if installed). Is there a similar way to invoke in-facebook-app share dialog via "fb://"?
The reason we'd like to use "fb://" over "http://facebook.com?sharer.php?u=" is UX. From their phones, most FB and Twitter users use the native apps (not the mobile web versions) so their apps are logged in and their browsers are not. The "twitter://post" link works beautifully for Twitter, but we can't figure out if something similar is possible with Facebook (we tried most of what's on http://wiki.akosma.com/IPhone_URL_Schemes#Facebook but no dice. Even the actual share button invokes the fb web version, not the app). Suggestions?
Thanks.

Which platforms do I need to add for my Facebook app?

I'm creating a Facebook app. It is an online survey and consists of some forms that the users have to answer. It runs on my server and is basically nothing but a common website. The site has been programmed to dynamically adapt to all mobile and desctop browsers and screen sizes, so the same URL provides the app for all platforms.
When I register my app with Facebook, I have the option to "Add Platforms".
Which platforms do I need to add? All? None? Just "Website"?
This depends on how exactly you want to use your app... A good starting point are the docs at https://developers.facebook.com/docs/web/tutorials/scrumptious/register-facebook-application/ which give you a first overview.
The app screen is similar to this:
I guess in your case, you'd need at least "App on Facebook" if you want to use it within the FB platform. If you want to use the Facebook Login, you need to configure "Website with Facebook Login" as well, and if you want mobile accessibility too, "Mobile Web" as well.

Facebook Integration in iOS app

I need to post a user-specific text, determined by him, on his wall/timeline when he presses a button (in facebook's tutorial, they make the user login when the app launches, and then it does nothing).
There is a lot of information on the internet but every site does it in other way.
Just wanted to know if there's a specific way to do it.
Thanks!
A quick easy way to add facebook to your app is ShareKit (http://www.getsharekit.com/). This also allows you to add other social network site to your app.
You might want to try Socialize: http://www.GetSocialize.com. It'll allow app users to comment & like within the app, with the option of also sharing out to a social network (Facebook currently live; Twitter coming). Full feature list at http://go.GetSocialize.com/features
DROdio

iPhone: Social media integration

I am developing iPhone app where I need to provide integration with different social media like FaceBook, Twitter, Google etc. I have seen couple of iPhone applications that allow people to login using their existing FB or Twitter accounts and allow to post comments, like/unlike, follow people etc. I want to implement something similar but not sure where to start with. Could anyone please suggest me right direction? Any documentation and sample code would be great help.
Thanks.
http://developers.facebook.com/ has just about all the info you might need.
Further also look in Apples library as it contains sample code and extensive information about most topics.
#AppleDeveloper, check out Socialize; this is exactly the problem we're working to solve: http://www.GetSocialize.com. Full feature list at http://go.GetSocialize.com/features
The problem with just putting Facebook into your app is that your download base of users aren't all friends on Facebook. So any sharing in the app using Facebook will only go out to that user's friends.
Socialize lets all users of the app see the social actions other users of the app take, in addition to allowing those social actions to be shared on Facebook (and soon Twitter & Google+ as well). Then we give you a reporting dashboard so you can see the effect of all the social actions on downloads & user engagement: http://go.GetSocialize.com/dashboard
Let me know if this is the type of thing you're looking for.
DROdio