Sharing / Liking an object in a tabbed facebook page - javascript

I have a facebook application which will run as a Page Tab.
The page will include items such as videos etc..
I want to give the users the ability to like/share the videos. If the URL for the videos is [http://mydomain.com/pagetab/video-1.html], how does the user get directed back to the facebook page tab when someone else clicks on the shared link in a news feed or from someone's wall? Won't they always go directly to http://mydomain.com/pagetab/video-1.html ?
Or is there a way to specify a URL with deep linking such as:
http://facebook.com/pagename/pagetab/page ?

I'm not sure about liking this URL, but you can deep link in Facebook tabs using the app_data param in the query string and then within your app you can extract that from the signed_request (http://developers.facebook.com/docs/authentication/signed_request/)

Related

Facebook Page plugin not accepting my page URL

I am trying to do the Facebook page plugin to a site of mine and anytime I enter my page URL, I get this code from Facebook - Error: Not a valid Facebook Page url.
I am copying and pasting the URL right from my profile page. I tried this on several other of my friends pages and I keep getting the same error. I get this error on the Facebook developer page and on my site.
I am using this:
https://developers.facebook.com/docs/plugins/page-plugin
I went to Social Plugins and then Page plugin. I then typed the URL in the Facebook Page URL input field. It is supposed to show a preview of the page plugin, but I continuously only get the error.
What could I be doing wrong?
profile != page
A user profile and a Facebook page are two different things.
The plugin works for pages only, not for user profiles.

Facebook for webpage embeded

I want to embed the #FIFA hashtag which shared on Facbook as an iframae on my webpage ,
I tried using iframe but Facebook doesn't support iframes.
also using JSON output
https://graph.facebook.com/search?q=%23fifa&access_token=CAAA....
but the access_token expires after one hour.
Please advice me how to proceed to add dynamic web page for displaying #fifa hashtag shares on my site like Twitter widget.

display twitter compose tweet pages through an iframe

so i have kind of a strange problem, I am in the process of building my own tweet button which is simple enough just using a link that resembles this <a href="https://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
now this as a link works just fine even with the dumby data prvided the problem is i would really like this page to open in an iframe on my site.. but twitter and other social networks have disabled this capability I am woundering if anyone know's a way i can use some sort of iframe or other tech including I assume an oauth and api which will alow me to send write, and display a tweet that the user can send inside my sight ?
as just using this returns an empty frame
<iframe src="http://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
</iframe>
anyhelp on how or even if I can do this or even a site I can check out that allows me as a user to do this would be greatly appreciated
(just a note I dont wish to tweet on a user behalf but rather display a pre defined text's tweet that enable the user to send without leaving my site or opening a new window )
Seems like it's against their terms of service. I'm researching the same issue now and it looks like you need to setup 0Auth to get an access token and then use the API. I'll report back when I have the full answer.

Facebook Feed Dialog simplified?

I'm trying to add a share button or "feed dialog" as Facebook now seem to be pushing, to posts on my website. I'm basically looking for a way to simply allow users to click the button and be sent to the share preview page to post to their timeline or a friend's timeline etc.
The problem is that I don't really need an app (or at least I don't see the need in an app) and I'd like to avoid using their deprecated sharer url method.
What are my options? Can I use the feed dialog method without creating an app? I've tried going through their documentation but it just confuses me.
I'm not fussed whether it's JavaScript that opens a popup or if it redirects to a separate page (provided a redirect url can be provided to return users to the original page on my website).
you definitely need an app for the FB.ui feed dialog, but the user does not have to be logged in. Without an app, you can either use the sharer.php in a javascript popup, or you can use a like and/or send button. Just make sure to include Open Graph metadata in your page.
https://developers.facebook.com/docs/reference/plugins/send/
Be aware that you should also use an app (id) with the like or send button.

Embedding Facebook Connect In A Facebook Page

Our site allows users to register using Facebook Connect. We also have a Facebook page. We'd like to include the "Connect with Facebook" button in our page so a user could instantly connect (aka register) and then be forwarded on to their account on our site.
I was hoping to use the Static FBML page application and the FBML iFrame tag to simply embed the button but it looks like the iFrame tag isn't allowed in Facebook pages. Facebook Connect uses JavaScript so I'm wondering if there is some kind of trick I could use like popping up a page in a new window that would automatically display the connect dialog box.
Any ideas on how I would include a Facebook Connect button on our Facebook page would awesome!
Thanks in advance for your help.
I think the best method would just be a link back to your site (you could even use the Facebook Connect image as the link) to a custom page that triggers the FB.connect javascript that's needed.
Check here for info about FB.connect.requireSession().

Categories