Open Facebook share link on website on Facebook iOS/Android app - facebook

I have a simple scenario that I can't seem to find the answer to.
Scenario:
On my website I have Facebook share link. When clicked I want:
If the user is on a mobile device - open in Facebook app if they have it, else open in browser
If user is on a PC - open in browser
At the moment all that happens is it opens in the browser. This isn't good as hardly anyone is logged into Facebook on their mobile browser which is going to result in lots of users dropping out and not logging in to share.
I've found a few questions like this on Stack Overflow but they are old and nobody seems to have found a solution.
Is this achievable? Seems odd that you can't open the Facebook Share Dialog in the Facebook app.
Thanks.

Related

Facebook share: Share from mobile website to app

I built a Facebook share dialogue on my website, which gets about 77% of its traffic from mobile devices. I am logging how many people click the button and how many of them actually share content. After some days it turns out, that the button is being clicked hundreds of times, but literally no one continues to actually share anything. The problem is: they get prompted to log into Facebook in their browser.
Is there any way to use an active FB-app login for sharing from a mobile website? And are there any differences between iOS and Android?

Is it possible to deeplink from a facebook post to an app and does it need to be approved by facebook?

I would like to have my app post to facebook and then when "friends" see the link, they can click on it and since it is a deeplink, clicking on it would take the user to the app store if the app isnt downloaded otherwise it would take them to the correct page of the app. Would this need approval from Facebook?
No approval needed, but in most cases this is currently not possible — Facebook has decided to block the functionality. The best option is to post a link pointing to a page on your website, and then open your app from there.
In other words, you can't open a link from the news feed and have it launch the app. However you can open a link to your website, and once the website is open you can launch your app successfully from there. This is the approach we currently use at Branch.io

facebook like box not showing up in chrome safari internet explorer

Just because this issue killed some hours of my precious time I would like to share these possible solutions with you.
Issue:
Facebook like box does not appear in either google chrome, safari, internet explorer or whatsoever browser.
Answering my own question
Possible reasons:
First of all keep in mind at all times that it might have something to do with your facebook login state in a browser.
Usually you are using a certain browser when surfing and developing. In this browser your are most likely logged into Facebook.
When trying a different browser you may not be logged in and Facebook possibly hides the like-box from you if:
Your Facebook fanpage has country restrictions
Your Facebook fanpage has age restrictions and Facebook does not know your age when you are not logged in
Your Facebook fanpage has been created but it has not been published yet (This was my case and it almost drove me nuts.)
You can adjust these settings in the admin panel of your fanpage.
Happy coding :)

Facebook scam error for web app

I am testing an integration of Facebook with external web app under facebook canvas.
I got down to just having a simple HTML page, but still getting the SCAM error.
"Stop!
This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a Facebook feature or "hack" someone's account, it is a scam and will give them access to your Facebook account.
For more information, see https://www.facebook.com/selfxss." in Chrome and similar message in Firefox.
The page is not displaying. I only can see "Cannot POST/fb_source=bookmark&ref=bookmarks&count=0&fb_bmpos=3_0"
My app is hosted on heroky and currently have just "HELLO APP NEW" text, no more.
GITHUB: git#heroku.com:better-you-v0-1.git
HEROKU: https://better-you-v0-1.herokuapp.com/#
What can be a reason for that?
That's a warning shown by Facebook to its users to prevent people tricking them into performing self-XSS attacks on themselves - it's not related to whatever problem you're having with your app

How can I make Facebook App page visible on mobile?

On my client's Fanpage, a third party app is running for a contest. How can I make this FB contest page available on mobile? I read the answer here:
http://facebook.stackoverflow.com/a/10833366/461119
also
Facebook SDK : Page Tab App returns not found in mobile Facebook App
I do not understand it clearly.
Is the query parameter ?ref-ts which we have to add at the end of URL?
What does it mean by "It helps in the browser but not the app itself."?
Will it help to see the App on mobile and click on it to go to the contest page on FB?
Also, I found this answer:
Works as advertised! Thank you. I was getting 404, but simply adding
ref=ts in my redirect URLs (I force users to use my app as a page tab)
fixed it! – Guillaume Boudreau
under the first link above but what is forcing users to use app as a page tab?
How can I set App as a page tab?
little bit confused.
I searched the web vigorously but did not get any clear explanation.
My observations about this issue:
Seems like it's an ANDROID issue, Work OK on iPhone's
Work with the link redirection services like Bit.ly (where the bit.ly link included the ref=ts)
I sent an email to Facebook for ANDROID developers.
Hi,
my iPhone's user colleagues can open links to page tab app with ref=ts
parameters but on Android we can't ;-(
The only way we've been able to do it is when the link to the app is
under a bit.ly redirection link
The problem is only when the links are open through the Facebook App.
Thanks
Let us know
Max*
You can access to your app using the next link https://apps.facebook.com/YOUR-APP-ID
In this way, you can access from a desktop or a mobile with no problem.