i have a problem with implementing a "Like-Button" in a Phonegap Application for iOS.
I'm using the phonegap-plugin-facebook-connect plugin and it works.(I can post things on my wall and so on)
But i can't realize a "Like-Button" of a specific page.(There is just a white space where the button should be)
I searched for hours on Google, but there were nothing which really helped me.
My current code is:
<fb:like href="http://www.facebook.com/oxfam.de" send="false" width="450" show_faces="false"></fb:like>
Where is my mistake?
Unfortunately at this point in time you cannot like facebook pages via the graph. Basically Facebook has give the ability to like out site objects via the graph but internal pages are still off limits - due to the potential of spammers.
Facebook Documentation
Related SO Question
Eventually this will be possible I think, but for now it is not.
Related
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!
Here is a site that I'm upgrading for one of my clients:
http://home.minitraper.pl/
As you can see, rolling the mouse over the facebook icon on the right, the LikeBox panel shows only 2 faces/connections but there are 5 people who like the page. I was playing around with various versions of LikeBox code (the current one is the iframe version) but it didn't change a thing.
What can possibly be wrong?
It could be that these people have set their FB preferences so you cannot be seen here unless you are that person's friend. You can't do anything about this.
This seems the most likely answer.
I've been having trouble accessing admin privledges for the like buttons on my website (along with other things).
This is the situation:
I have made a facebook page for my website www.digitaldemocracy.org.uk
I have made a facebook app for my website that allows people with facebook accounts to register and login to the site. This works fine.
Like buttons are associated with different php dynamically created pages on my website i.e. www.digitaldemocracy.org.uk/debate/debate.php?id=3850. These Like buttons work when users click on them. I also have a like button for the main page www.digitaldemocracy.org.uk which works a bit funny as it seems to sum up all the likes from the other pages (even though they all have different URLs associated with them)
Now what I'm having issues with:
I have put 3 facebook UIDs into the metatags for admin purposes for the Like buttons. I have tested some links with the fb Linter (https://developers.facebook.com/tools/lint/) and it doesn't seem to have any issues, but when I click the like buttons myself, I get no admin features. I have also tried accessing admin priv directly from facebook, but no luck with that either.
I read that you can tie admin rights to a fb page, so then I tried it with the facebook page (page_id) for the site, but no luck with that either.
I then tried to give admin rights from my website to the facebook app, but when i test it with the linter it says that i have associate it with the specific page www.digitaldemocracy.org.uk/debate/debate.php?id=unique_id, which seems to defeat the purpose of what i'm trying to do (tie all the website pages together so i can easily administrate them).
The furthest I've got is to see the insights for the domain www.digitaldemocracy.org.uk/ (where i wasn't able to before), but I can't seem to see likes for individual pages and I don't seem to have any admin rights about publishing to user's feed or seeing who the 'likers' are! Am I missing something now?
It 'seems' to be that i'm doing all the correct things specified by the documentation, but I have getting nowhere and don't know what else to do. I have searched forums for answers, but they're just all over the place. I hope that stating my exact problem and what I've done will hopefully find someone able to help me!
Thanks in advance.
Denise
2 things I have found:
It seems the Admin link will only appear when you are using the default like button settings (ie faces on etc)
For the times that I could not get the Admin link to appear, I ran the linter and it suddenly did.
Perhaps try emptying the cache for your browser too but I have a feeling the first point might solve your problem?
I could be wrong, would love to hear someone else's opinion!
This issue has been driving me crazy ever since I accidentally discovered that these magical pages existed. I've had them show up with and without appIds in the fb js snippet. There doesn't seem to be any logic.
Item 1 from Sam Hammond doesn't seem to matter. Most of my Like buttons have data-show-faces set to false.
<div class="fb-like" data-href="http://www.mysite.com" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
From the above example I have seen the following:
Actual Web Page Like Button shows "9k"
My admin page shows "1.7k"
It's great. I can reach 1.7k people who Liked the page. But what about the rest and what about any new pages I create?
For now, when in doubt, drop the Facebook Page Like Box on your web page because at least it works consistently:
https://developers.facebook.com/docs/reference/plugins/like-box/
I also have to wonder how facebook users react when they start seeing posts in their feed from sites they Liked. It seems a bit intrusive.
I frequently use the Linter/Debugger tool on my web pages, doesn't seem to make anything appear. But this tool is highly recommended for other purposes:
updated link from above is: https://developers.facebook.com/tools/debug
Can someone tell me how to implement facebook recommendation or like on mobile (iPhone, Android) web browser?
I following the guides for plugin approach and FB.ui approach:
http://developers.facebook.com/docs/reference/plugins/like
http://developers.facebook.com/docs/reference/javascript/FB.ui
but, none of them gave a mobile web sharing experience for recommentation/like. All of them give me desktop version of recommendata/like page.
Is there any tutorial or examples for Facebook sharing on mobile web? Can anyone help?
Thanks.
<div id="facebook_code"><iframe src="http://www.facebook.com/plugins/like.php?href=www.facebook.com%2F[FACEBOOK USER NAME OR ID]&layout=standard&show_faces=false&width=250&action=like&colorscheme=dark&height=80" scrolling="no" frameborder="0" class="facebook_like_button" allowTransparency="true">
Using the like button was a little bit of a fit, but here is how you do it.
The class is so you can style and position a div, the code calls facebook's like.php script so no need to include an extra call to a js file. The code I used also removes the pop up box that you can not style with the FB faces in it, it just displays names. Leave enough vertical room, in this case 80px for the text to wrap with the BLANK likes this text.
You might have to open a web view/safari because either way you're going to have to prove that the user is logged into facebook somehow.
I'm not sure their iOS SDK supports this but have a look at it on GitHub and maybe check the forks to see if anyone has found a way to add the like button.
You may also be interested in sharing rich content and media using Kik API. It lets you integrate your mobile app into Kik Messenger and use Kik's own transport and infrastructure to share content with other mobile app users. It is also very simple to integrate - about 5 lines of code, in simpler scenarios. There is more info on Kik API website: http://www.kik.com/dev and http://apiblog.kik.com
Disclaimer: I'm one of the developers behind Kik API :)
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.