So, I have an interesting question here. Right now, I have a facebook comments app on my blog, howmanyfrogs.com - I updated my permalink structure because another plugin broke it, and now all my comments, although they are showing under my application on facebook at this link here: https://developers.facebook.com/tools/comments/?id=254902427882384 they aren't displaying on the website because facebook can't find the page they are supposed to go on. I was wondering if there was a way in the facebook app to repoint them to the correct link?
I have tried the data-href myself and it hasn't made a difference. I would think the best solution would be to associate it with the shortlink (since that never changes) and display it even with the longer friendly urls.
<div class="fb-comments" href="<?php echo wp_get_shortlink(); ?>"></div>
It works, but I lose all my comments made before when I used permalink. (quite annoying, believe me.)
However, since the link now goes to the post not the pretty link of the post it stays with the post even when the url changes (i.e. due to moving the post between categories)
Facebook Comments and Likes are tied to a URL - which is basically Open Graph Object identifier. So when you changed your URLs (permalinks), the Comments and Like plugins think they are on a new page (the new URL) with no comments.
You'll need to figure out a way to pass the old permalink into your Comments Plugin call, I think. That should bring up the lost comments.
<div class="fb-comments" data-href="YOUR OLD POST URL"></div>
I'm not sure the best way to do that though... you might have to write custom WordPress function (in functions.php) that generates the old URLs based on the new URLs.
It would have been helpful if you told us your old permalink structure and your new one. I did some Googling and it looks like this guy had some success. Maybe look at how he solved this issue.
Related
I'm in the process of creating a new website and I just added the FB comments Social app to my posts, but I keep seeing comments that are not related to the article and they date weeks before I've even created the page. What is wrong here?
Got it. I just needed to change the data-href value to be the permalink of my website. it looks like this: data-href=“<?php the_permalink(); ?>”
I want to be able to post iframe on user's page, i.e. basically completely custom post with its own html markup and its own javascript. Something like when you post youtube/vimeo or coub video, they have their own players.
It seems to be possible just judging from the fact that there are apps exist which allow you to do it and there are also some guides on how to create "iframe app", but those guides seems to be pretty outdated.
I could not find anything about that in facebook docs. Canvas seems to be the closest one, but it's a page outside of user's timeline and I need it to be embedded in the timeline, like a post which can be shared, liked etc.
Any pointers to docs would be appreciated! Thanks!
I'm currently having trouble using facebook like button in html5 version, it seems that everytime the visitor of my wordpress blog liked a blog post, it's not working. It will work for a while but when you refresh it, it goes back to active button which is very strange since the user already liked the blog post.
I also encountered that when i liked my own blog post, it fetched the wrong details. example, i liked the blog post #1 but when i check my facebook, it the fetched image is wrong, the description and title is also wrong.
what is the proper way to add a facebook like button in wordpress blog?
any help?
I also encountered the same error before. I already tried the linter to debug it but it really doesn't work. Anyway, my simple solution to that is I changed my facebook like code to Iframe version (since html5 give me crap, there's no harm if I use iframe lol). I don't encountered any errors with that. It works perfectly.
about your question on how to add facebook like in your index file or multiple blog posts in wordpress, the link (guide on how to...) might help you. I used that before. It also discusses about twitter tweet, google plus and pinterest pin it button's wordpress implementation.
have a good day!
I've added facebook comments to my website using the following steps:
I created a new app herehttps://developers.facebook.com/apps/
In the auth dialog page for the app, I set 'default activity privacy' to 'Public'
I got the code for the comments box here https://developers.facebook.com/docs/reference/plugins/comments/
I used the HTML5 version of the code and added it to my site in the two places specified - right after the body tag and where I want the comments to appear.
I then opened the comments moderation tool for my new app.
https://developers.facebook.com/tools/comments?view=recent_comments
I clicked on 'Settings' and turned on 'Make every post public by default'
I also listed myself as a moderator.
I also added
<meta property="fb:app_id" content="{YOUR_APPLICATION_ID}">
inside the head tags for the page.
When I go to my site - the comments box appears to work ok. I can make a comment, but I can only see comments made by me. I cannot see comments made by people I am not friends with. How do I fix this problem? I'd appreciate any help.
Thanks
Every comment you leave on a facebook-comments driven web site is public, the same way it is on a fan page. Even a non facebook member can leave a comment.
I am looking for a way to turn it off and get the same permissions you have on your facebook wall. Currently, everybody who has the link can see the page content and all previous comments.
Had the same issue and figured out that Facebook grabs urls differently for displaying and submiting comments.
If the url you're providing him in data-href (e.g. short url) is different than the window.location url (url in address bar), then it's probably the case.
P.S. I know that the question is from 2011, but someone else may show up with the same problem.
Does anyone know of a solution for this that i may be able to purchase?
Ok Well facebook no longer allows you to embed into an IFrame and my company wants to have facebook show up on our application which we do by creating a Iframe and embedding. But on Feb 5th facebook took away that ability. So I am looking for someone who has worked around this sollution but no matter what the sollution has to embed within an IFrame...
<iframe src="http://www.facebook.com/" />
I have not tested, but I suspect Facebook might be using some JavaScript like this to break out of frames:
if (top.location != location) {
top.location.href = document.location.href ;
}
Unfortunately there is nothing you can do about this, except if you were to proxy the entire Facebook site on-the-fly and filter out this JavaScript, which would most likely break other things. Facebook, and many other sites, implement this trick because frames are often used only for malicious purposes (i.e. framing another website with illegitimate ads or scamming).
Edit: I see from your comment that you say this works at the moment. As I explain above, this is really under Facebook's control, unfortunately. If they choose to add the little bit of JavaScript to break out of frames, you can't stop that from running.
I know this is a bit old - but it came up in my search when I was looking for a similar answer. You can get the code to embed an iframe containing public posts, comments etc (a bit like YouTube embed) from this page: https://developers.facebook.com/docs/plugins/embedded-posts/ using the social plugins.