Hello everybody,
I am trying to create two buttons in my Unity game to allow users to post a message to Facebook and Twitter (“Share this” type of message).
What Worked
I have managed to easily send the user to a Post/Publish/Share page by calling a URL that opens the respective web page, but I would like to open the app when it is installed.
I understand I need to use the twitter://...
and fb://...
URLs and I have found out how to create the fallback to a standard web page in this forum thread.
What Didn’t Work
- When using
twitter://post?message=Hello%20World
it does open the Twitter app with the correct Post Message dialog, but it works only if you have only one account configured in your Twitter app or if the first configured account was already open in the Twitter app. - With Facebook, the problem is more fatal - I could not find any
fb://...
link that worked - they all open the Facebook app, but without any Post Message dialog. I have followed the list of iPhone URL Scehmes and tried opening URLs likefb://publish/?text=Hello
orfb://post/Hello
- none worked.
Does anyone have a working solution for this? Or should I just stick with sending the user to Safari to do the sharing task?
Thanks in advance.