Facebook Like Button not page specific. Workaround or alternatives? - facebook

This may end up being nothing more than a matter of preference, but I'd like to reach some sort of a consensus if at all possible.
I've got a page on which there a several different items that a user might want to share on Facebook. Were it still 2010, I would simply attach a "Share on Facebook" button to each of these items and have that button draft a corresponding wall post when clicked. But as we all know, Facebook has chosen to deprecate the share button in favor of the 'Like' button. Problem is (as far as I know) the Like button is specific to a page. This poses two problems:
I can't attach a different Like button to each of the different items a user might want to share.
Since the content on the page is not static, a user clicking the like button might be told that a certain number of people have already liked that item, despite the fact that the other likers in all likelihood (no pun intended) clicked the button for a completely different item. The fact that the URL remains the same causes trouble.
I recently bought something on Amazon, and was immediately taken to a page where I could Share my purchase on Facebook. Not Like. Share. I clicked the button, and it opened a modal window with a pre-drafted wall post. Does this mean that Amazon is using the deprecated share button?
Would using the Share button in 2012 be totally out of line?

Here you can find the code needed for implementing a custom Share button.
redirect user after facebook share and publish
I hope it helps you.

Related

Facebook edge.create doesn't fire if the like button has a confirm dialog

I'm trying to create a page that requires visitors to 'Like' a Facebook Page before showing all the content.
The page with the like button is hosted on herokuapp.com but the URL to like is a Facebook page (ie. the host URL and the 'Like' URL are different).
I've successfully included a like button and I have subscribed to the edge.create event, and everything was working fine (I could write to console.log or run custom javascript) when clicking on the Like button.
However in the course of testing I've clicked Like/Unlike so many times that my site has now been flagged as potential clickjacking and the Like button now changes to 'Confirm' and asks the user to go through the Confirm dialog process.
I understand that I just need to accumulate more 'white' Likes and this dialog will go away eventually, but in the meantime it's causing me problems.
Basically, when I go through the 'Confirm' process in Google Chrome or on my iPhone, the 'Confirm' link never changes to 'Liked', the number of likes doesn't change and the edge.create event doesn't fire.
Has anyone else encountered this behaviour? I've read just about every post on Stack Overflow relating to either the Confirm process and edge.create but no one seems to have had this particular problem. I'd really appreciate any suggestions :)
I was able to resolve this problem by moving my app to be hosted my own domain instead of heroku, even though I was liking the same page. Not an ideal solution for everyone but it worked for me. In future I will create dummy apps and pages to test this process out.

Facebook page form

I am trying to create a form that will pop up over the top of a facebook page (not profile) when a user clicks onto that page, if the owner of the page has a specific app installed.
The popup would require the user to dismiss the popup/complete the form before they could interact with the page.
Apparently this used to be possible, does anyone know how to go about doing this now?
I suspect what I am after is a custom dialog that can be triggered on page load. Is such a thing possible in facebook?
This will not be possible. Facebook Pages no longer have what were called "Default Landing tabs" which would direct non-fan users to a particular tab app. Even then, this kind of popup behaviour would probably have been undesirable for users, possibly prohibited by Platform policy and likely blocked by most users browsers.
You can still create a Page tab app that can be gated behind any kind of restriction that you wish, however the regular Page content will still be visible to any user.

sharer.php - multiple URLs

After having searched for several hours, I have not been able to find an answer to this question. I am currently using sharer.php to achieve a simple "share link" post on facebook i.e.:
http://www.facebook.com/sharer/sharer.php?u=http://mywebsiteapp.com/product.php?prodID=1
What i have in my application is a series of checkboxes with items. I check the items that i would like to share and click "Share" and a window opens for each item.
I would like to share these items on Facebook within one window, rather than having them open up in a new one. This is how i currently have it. It would be incredibly tedious for users to go through each window and click "share" for each one.
I was thinking of combining all the windows into separate iframes on one page. However, Facebook does not allow iframes to be used or any sort of embedding code, so i am out of options.
Does anyone have any other ideas?
Use Facebook's JavaScript API. It will at least allow your users to share all of the items without leaving the page, although they will still have to go through them sequentially.
I think Facebook's JavaScript API actually does put each Facebook page in an iframe, which is fine because it's Facebook doing it and not you.

direct share on facebook

this might seem stupid or irrelevant but problem is:
I want to make aa button, which is going to share the url and title on facebook(and/or twitter) directly. I mean, without visiting the standard share window of facebook.
As another option, I thought about:
when you click on a share button, facebook and/or twitter share windows are opened. I want to include those windows in a single one. however when I use iframes, I face two empty borders. along with those two frames I would like to add a button, when clicked, the url will be shared on both fb and twitter.
are those possible or allowed? if so how may I do this. please help me I'm so stuck
You can't share without the window, unless the user have authorized your site to post to Facebook in his behalf. Check this post on how to do it

Facebook Sidebar/Tab Applications

Been searching the FB documentation to find an answer for this, but have been unsuccessful.
Is an application able to appear as a tab on a page/profile, and also in the sidebar of that same page/profile?
So the tab would show the full application details, but the sidebar would give a small breakdown.
Is this possible?
Thanks!
Pages and profiles are different. You didn't used to be able to have a profile box and a tab for one application, but Facebook recently changed this. Probably because they stated the profile boxes are going away.
Adding an application as a tab on a Profile has always been a bit problematic and convoluted. The user had to click on the "+" tab, and your app may or may not appear under the list and/or come up in the search. However, 2 weeks ago Facebook announced support for an "add as tab" button.
http://wiki.developers.facebook.com/index.php/Fb:add-profile-tab
Note that a user cannot add your application as a "profile box" until you have posted content to their profile (profile.setFBML) to be displayed in the box. The you can use the fb:add-section-button tag to display the "Add to Profile" button in your application. Box content is cached, so every time you want to update the content you need to post it to Facebook.
Adding an app as a tab to a Page has always been fairly easy. Go to the apps facebook page (not the app) and click on the "Add to My Page" link in the top left.
Profile Boxes (and the corresponding Boxes Tab) are gone.
The replacement for both of these is Application-Specific Tabs. You are no longer able to push content directly to a user's profile.
james, it is possible. just started developing fb apps three days ago. so far my app sits in my tabs and in my profile box, displaying different infos.
http://www.snipe.net/2008/09/planning-a-facebook-application/
try this.
Ah interesting, found Developer Roadmap and basically lays out that what I am asking to do, won't be possible for much longer. Unfortunate, but I guess answers why I am finding it rather hard to do.