website login without JavaScript SDK - facebook

I am trying to add a login button to my website without the js/php sdk, and following the help page for this on the FB dev site it tells me to add
https://www.facebook.com/dialog/oauth? client_id={xxxxxxxxxx} &redirect_uri={http://www.mydomain.com}
to my code but whenever I follow the link it gives me an error saying
The redirect_uri URL must be absolute
I'm pretty sure my url can not get anymore absolute then that, so I think it is an issue with something else but i have not been able to find anything to correct the problem

Did you replace the uri with the one to your site?
https://www.facebook.com/dialog/oauth?client_id=1234567&redirect_uri=www.madderfish.com

Related

Facebook 404 file or directory not found

I have an e-commerce website and I want to share a link on my Facebook profile.
When I do I get a 404 - File or Directory not found even though the URL is working properly when you click on it. Below is what I see exactly:
I have tried:
To post the URL with https:// or without
https://developers.facebook.com/tools/debug/og/object
https://developers.facebook.com/tools/debug/sharing/
None of these solutions work!
The Sharing debugger shows this error:
But I don't understand how the error is legit since I have the parameters it's asking on my Page's Header tags.
What exactly is wrong?
I had the same problem at some point and the issue was that the team who manages our server had blocked the bots of Facebook and other search engines from entering our website and they forgot to undo this! Have a look if this is the reason in your occasion.

facebook like box not working for FB Group

I'm trying to use the facebooke like-box for a FB Group I'm creating a website for. I'm getting the error below. Where is the mistake coming from ? Thanks
https://www.facebook.com/groups/tapmichiana/
Could not retrieve the specified page. Please verify correct href was passed in.
Although Facebook encourages all it’s users to use “safe browsing” and therefor HTTPS when accessing the platform … the like button itself seems to be a little behind on that issue.
Try pointing your like button to http://www.facebook.com/groups/tapmichiana/ instead, the non-SSL version of your group’s page on Facebook – then it should work.

Facebook mobile web returns 'Your link could not be found' when sharing a URL

When users try to share a URL on facebook mobile web, sometimes the page returns the following message: 'Your link could not be found' and a text input to manually insert the URL
Sharing URL that works:
https://m.facebook.com/sharer.php?u=http://dishenvy.com/dish/pollo-garnachas-gran-electrica-brooklyn
Sharing URL that doesn't work:
https://m.facebook.com/sharer.php?u=http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york-
Code I'm using:
<a class="fb_share" name="fb_share" type="icon" share_url="<?php echo urldecode($shareUrl) ?>">
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
Make sure the url you pass is accessible to Facebook. Not sure why, but their mobile site seems to validate the url but their non-mobile site does not seem to care. If you have code generating the link you pass to facebook and the host corresponds to a server behind a firewall or private network (such as a test or dev server), this error will often happen.
According to the debugger the two url example that you posted work the same:
First
Second
So I don't know how to help you with that.
What I can tell you though is that you are using a deprecated api.
The facebook "sharer" is no longer supported as it states here:
The Share button has been deprecated in favor of the Like button, and
will no longer be supported. Please use the Like button whenever
possible to drive maximum traffic to your apps.
And here:
What happened to the old Share button?
We deprecated the Share Button when we launched the Like button,
because the Like button improves clickthrough rates by allowing users
to connect with one click, and by allowing them to see which of their
friends have already connected.
That may be a cause for the inconsistency you are experiencing.
My advise to you is to stop using this deprecated api and move to the Like button.
I think facebook check your sharing page found or not on the server. Your first url found on the server (It means first url return the page). Second url doesn't return the page. The second url return the empty page for this reason facebook return this message. 'Your link could not be found'
Click the link :
http://dishenvy.com/dish/pollo-garnachas-gran-electrica-brooklyn = Page found
http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york- = Page not found
So share correct url on the facebook
https://m.facebook.com/sharer.php?m2w&u=http://dishenvy.com/dish/samgyupsal-hahm-ji-bach-new-york-
For mobile view you want to add m2w to the url.

OAuth facebook pagetab app error

I'm totally stuck on this one..
I cant get js sdk or even the oauth link working..
When I try the oauth example, it works just fine:
https://www.facebook.com/dialog/oauth?scope=email,user_birthday&client_id=123050457758183&redirect_uri=http://www.example.com/response/&response_type=token
but in my case:
https://www.facebook.com/dialog/oauth?scope=email,user_birthday&client_id=317872318261965&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fpages%2FDigiComm%2F185749568187479%3Fsk%3Dapp_317872318261965&response_type=token
the link is basically the same, but get's an error
I've been fighting with this for days.. And can't understand, what could be the problem,
because each time i try to open the auth dialog with js sdk i get this same error..
It must be an error in the app settings on facebook side, but i cant understand what..
I'd say i have the same problem as this guy..
but as i can see he hasnt gotten any answer too:
Using OAuth dialog for facebook app do not allow to use canvas URL as redirect_uri
You need to make sure that the canvas/tab/website URL's in the developer app (https://developers.facebook.com/apps/317872318261965) match the redirect URI in your url.
At the moment, your link is pointing to http://www.example.com - you need to point this to wherever your app is hosted.
try to add http://www.example.com/ with all the slashes as website and example.com as app domain
Update:
If it is a canvas app your redirect_uri should be:
urlencode("http://apps.facebook.com/MY_APP_NAMESPACE/");

Feed dialog to event/fan page says "Sorry, something went wrong." after clicking share

Having some issues with the feed dialog when attempting to post to a event or fan page. In my application I am using the JS API and FB.ui using the method feed.
But for a demonstration you can do it using the feed url too for example:
http://www.facebook.com/dialog/feed?app_id=131727613511269&to=287203454659917&redirect_uri=http://www.timeanddate.com/
After clicking share you get the:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Where:
app_id = your app
to = a event / fan page
redirect_uri = a url you are allowed to redirect to
note that the app has publish_stream permissions. (it also has manage_pages for fan pages)
The app in question by the way is: http://apps.facebook.com/tndcountdown/
Thanks,
Andy
EDIT:
An Example taken straight from the documentation:
http://www.facebook.com/dialog/feed?app_id=123050457758183&link=http://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Using%20Dialogs%20to%20interact%20with%20users.&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response&to=287203454659917
just replace to=287203454659917 with an event.. (make a test one like it did there)
A few issues I've run into will dialog is that Facebook tries to fill in any missing data. So if you don't provide a description and caption, Facebook will try to scrape the page to get that content. Depending on how the page responds to the "scraping" Facebook will error out. I always make sure I include at least a space for those fields.
It seems the feed url you provided is similar to what is in the documentation. But the demo in the documentation has extra parameters.
I'm about to add page support to my Facebook app, which does the same thing as yours.
http://apps.facebook.com/countdown-timer/
As I posted here - Facebook Send Button - 'Sorry, something went wrong.'...
I had the same problem & worked out that this was due to linking to a Facebook page that did not have a vanity URL set up (i.e. http://www.facebook.com/CubicMushroom rather than http://www.facebook.com/profile.php?id=261963707177053). If you set up a vanity URL for the page it seems to work OK (providing you link to the vanity URL version of the page URL).
To claim a vanity URL, once you have a certain no of like (it used to be 25, but think it's a little lower now) visit https://www.facebook.com/username/