Facebook for webpage embeded - javascript

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.

Related

Empty feed in Facebook page plugin (embedded feed widget)

I'm integrating a Facebook Page feed using the Facebook Page Plugin https://developers.facebook.com/docs/plugins/page-plugin
Although it's working fine for almost all pages, I'm having an issue with one Facebook page. The page plugin is displayed but the feed is empty, no post at all.
The page I'm trying to embed:
https://www.facebook.com/ConnectHearingAsheboro/
The web page where the widget is setup:
https://www.connecthearing.com/hearing-clinics/nc/asheboro/
Publications on the page are correctly displayed when on Facebook site, even when being logged out.
Does somebody have an idea of why would that occur ?
Thanks
This is not a bug, it's a feature
Facebook support answered me here https://developers.facebook.com/bugs/1109206649216632/
The Facebook page I'm using in the widget is sharing posts from its parent Facebook page. The Facebook page widget doesn't include the parent page posts, it's just the way it's been built.
It's a dead end.

Embed page source code to website

I would like to know how to embed page source code to my personal website.
I want to show how many YouTube subscribers, Linkedin Followers, Instagram Followers etc. I have on my personal website (I'm using Squarespace).
If you go on a YouTube page, right click 'View page source' then search for the subscribers. Is there a way of extracting this code so it updates automatically on my website every time I get new subscribers.
It would be great if I could keep them all is the same style like I have on my homepage (I have just manually typed the numbers in for now) under my showreel.
http://www.tierney.tv/
Thanks in advance,
Michael
There is no way to just "embed" code and just display specific information of an account unless someone has created it as a plugin in the type of website you are using. You would have to create API access and requests. Here is the way to Authorize Requests. https://developers.google.com/youtube/v3/code_samples/javascript
Here with your Channel ID you can get a snippet to get your subscriber numbers.
https://developers.google.com/youtube/v3/code_samples/code_snippets
These widgets should be made and supported by respective companies/sites. They can also be found there with respective links to embed the widgets.
Ex - youtube, facebook, google maps have embed codes provided to embed their videos, posts, maps.

Sharing / Liking an object in a tabbed facebook page

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/)

Facebook like button detect with javascript

I'm writing an app. for Facebook using HTML and Javascript. I'm trying to detect with javascript when the "Like" button on the Facebook page is clicked. I don't want to embed a "Like" button on my app page as Facebook already has a "Like" button at the top of the page right after my company's name.
I'm using Facebook's iFrame to display my app, but I haven't found any examples in Javascript to catch the "Like" click event.
Thanks for any help
Because it is in an Iframe the same origin policy applies. You cannot access content cross-domain. It is a security violation.
On Facebook Pages, this is done through the Static FBML app. However, Facebook phased it out on 18 March 2011, but pages using the app before that date (including BobbiBrown) will continue using it.

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