- Home /
Post message to Twitter / Facebook app
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.
Your answer
Follow this Question
Related Questions
Post Score to Facebook IOS 1 Answer
How to open the game on an android device using a URL? 0 Answers
Social media assets 1 Answer
Get auth token after the login of twitter or facebook? 0 Answers
social network & share function 4 Answers