Facebook like box : ''Page could not be reached" Error - facebook

I created a fb like-box at https://developers.facebook.com/docs/reference/plugins/like-box/
But when I tried to like it, it gives the error as in the attached image. When I clicked on error link, it says The page at https://www.facebook.com/phonekade could not be reached.
This works fine with my other fb pages. So I can't understand what the problem is. Can anybody help me here? Thanks in advance.
Image:

You should run your page through the Object Debugger. It has some serious problems.
http://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Fwww.facebook.com%2Fphonekade

What worked for me was to change website url in the facebook code to https instead of http. For some reason after I did that everything worked. Then I changed it back to http and it still worked!
To be clear, I made it:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpagename....

I don't know what the cause it, but it works fine now. I didn't do a thing. May be fb needs time to get things done properly. I created this page yesterday and after a full day it works fine now. Thanks all who tried to help me.
Cheers,

Try this solution. It works fine for me.
<?php }
$url = 'https://developers.facebook.com/tools/debug/og/echo?q='. $_SERVER['PATH_INFO'] ;
$response = file_get_contents($url);
?>

Related

Security-Check iFrame not beeing loaded when trying to create new facebook app

i am trying to create a facebook app, however the security check won't let me. There's an iframe which just will not load.
I have tried it with chrome, edge, safari, disabling McAffee, tried it on my smartphone without wifi connection but nothing worked.
Do you have any tips what i could try or does someone know about this problem?
Here is a screenshot of the error in chrome:
https://imgur.com/tYPG7fT
This is how it looks like in edge:
https://imgur.com/fZvzh8P
It says "Cant show this content in an iframe.
For safari: there is simply nothing where the iframe should be.
Ok problem solved by time. Just tried it again a few hours later and it was working well now.
Using edge instead of chrome solved this for me.

Facebook is Fetching Weird URL of my laravel based website

I am having this link:
http://www.myqourse.com/offer/557/en/Certificate+Business+Professional+-+CBP+Leading+through+change
when I post it on WhatsApp, the link renders perfectly. However, Facebook tries to fetch http://www.myqourse.com/www.myqourse.com/offer/557/en/Certificate+Business+Professional+-+CBP+Leading+through+change
Any thoughts why is this is happening?
Solved it! I had a pretender.io middleware, that, was not compatible to my new htaccess. I updated the htaccess and removed pretender.io and forgot to do that to my middleware!
Hi guys I appreciate your support.
While investigating the issue, i figured out that i used to use prerender.io before, though i removed the code from my project, it appears i forgot to upload updated Kernel.php (and remove prerender.io from global middleware), now things works perfectly!

Facebook Feed Dialog through WebView in Unity is Blank

I have been using a WebView dropped into Unity(Found here: https://github.com/gree/unity-webview) for implementing Facebook connection. The WebView has been working very well for authorization of the user in the OAuth dialog, but when I try to access the feed dialog for posting to a friend, I end up with a blank white screen. The same generated URL when dropped into a browser works just fine.
The feed dialog URL I generate looks like this:
http://m.facebook.com/dialog/feed?access_token={Access Token}&app_id={App ID}&from={Authroized User}&to={Selected Friend ID}&link={Post Link}&name={Post Name}&
description={Post Description}&redirect_uri={My Redirect Page.aspx}
Example of the functioning Auth dialog URL I generate looks like this:
http://m.facebook.com/dialog/oauth?client_id={App ID}&redirect_uri={My Auth Redirect.aspx}&scope=publish_stream,publish_actions&response_type=token
Wondering if anyone knows what could be causing this with this particular WebView.
Thanks in advance for any assistance.
Was tearing my hair out about this but got to the bottom of it. I had tried escaping the URL and it did not work the other day - but then I tried escaping just the values of some of the parameters being sent that had spaces this morning. This seemed to fix it. Simple mistake, but if anyone runs into this, don't forget ESCAPING IS EVERYTHING! Often you are working in something higher level(At least I am) where URLs and parameters get escaped automatically, lesson learned I guess :D

Facebook like button redirection?

I tried to install Facebook Like Button (http://developers.facebook.com/docs/reference/plugins/like/) on my page but after I've put the code (HTML5 version) there is some strange redirect which change address of the page adding "_FB_f2af6423b6fd064xd_action=proxy_ready&data" to it?
Do you have any idea what may cause the problem?
I can install iframe version of like box but some time ago I received an information about similar problem while there was some toolbar installed in the web browser. String in url was different but result the same - error 404.
You can see the problem here: www.keeeper.voyagersblog.com/en/ and properly working page (without like button) here: www.bea.trvblog.com/en/ .
Thank you for help!
Best regards,
Bartek
The problem was that I have my own js EventListener called 'message' and it seems that facebook use the same name.
My event listener is fired by fb script and then my function makes redirect (params are not proper so it goes nowewhere).
When I changed listener name it's ok, it seems that it's fb bug.
Thank you anyway!

Facebook like button not working on recent wordpress blog posts

I have a facebook like button on each of my wordpress blog posts, this worked fine up until about 2 weeks ago, and now all recent blog posts don't have functioning like buttons.
This is the response I get when I click the like button (post link)
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":false,"error_info":null}}
and for the old blog posts that DO work (post link):
for (;;);{"__ar":1,"payload":{"requires_login":false,"error_info":null,"show_error":false,"node_type":"ExternalLink","node_id":"xxxxxxxxxxxxxxxxx","edge_type":"ExternalLinkLike","connect_text":0,"success":true,"already_connected":true,"user_profile":{"name":"xxxxxxx","profile_url":"http:\/\/www.facebook.com\/xxxxxxx","pic_square":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/xxxxxx_xxxxxxxxx_xxxxxxx_x.jpg"},"story_fbid":"xxxxxxxxxxxxxxxxx","is_admin":false,"admin_url":""},"invalidate_cache":[0]}
I've tried replacing the like box code, removing the href attribute from the like box tag, running each link through Facebook URL Linter and none of this has worked!
I don't understand why it works for old blog posts and not new ones, there are no differences between them (that I know of).
This issue has nothing to do with your code. It is a FB issue I encounter on my websites as well. Did some research and came up with this:
this behavior is intermittent, may work on some pages, may fail on others
if you go on this page: http://developers.facebook.com/tools/lint/ and enter your url there, first time it will show up an error, afterwards the page will load. Hit some refreshes and afterwards the like button on your site (on the entered url) will suddenly start working... Very weird! I think it has something to do with FB crawler and (maybe) when accessing the lint tool you somehow force the crawler to recheck your page or something.
If anyone finds out something else, please share, the issue is really annoying...
Looking at the forums here:
http://forum.developers.facebook.net/viewforum.php?id=53
It looks like several other developers are running into the same issue. Some posts there also brought up having to use the lint tool to get their like buttons to work. I've also gotten it to work on my site by just mashing the Like button until it eventually accepts it so like what hpuiu said, i'm pretty confident that this problem's on their end.
Edit: And maybe on a related note, another post said that FB stopped scraping their site until they used the lint tool on their page and another said that they seem to consistently get this issue for any new posts that're around for less than 24 hours.
You could try to add the Iframe version of the like box instead of their javascript version. Sometimes it actually works better when loading multiple post for example.
Facebook doesn't like the '/' at the end of the url. So you can use something like this to omit the '/' at the end of the url :
$title = get_permalink();
<fb:like href="<?php echo substr($title, 0, -1); ?>" layout="button_count" width="300" show_faces="false"></fb:like>