Facebook Page plugin not accepting my page URL - javascript

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.

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.

How to get Page ID from Facebook Iframe

After I installed the iframehost app and edited content. The app how to know my page id and render the content successfully. I want to make an app such as it.
My problem is: Assume many users installed my App for their page, but I don't know how to get the page id from different Iframe for each request the page. Please, who can explain how to get page id from iframe when users enter the Facebook page tab.
You can get the Page ID with the signed_request parameter. Here are some threads where this is explained already:
Facebook API get Fanpage ID inside Page Tab
Get Facebook Page Tab ID of current Tab?
how to get facebook page id inside page fan tab using facebook javascript sdk
How can I find out what Page has installed my Facebook App / which page is loading my app

How to logout facebook - using code in rails application (Ruby on Rails Omniauth)

I tried to add more than one twitter and facebook accounts from my page via omniauth in rails.
Twitter working fine using force_login parameter.
But, facebook not supporting this.
i can add only one facebook account using /auth/facebook. After i tried to add new facebook account using /auth/facebook path then it returns to my home page only.
If i browse www.facebook.com in same browser then the login page not appearing. The lastly added facebook account page is opening.
when i logout from facebook in browser then i tried /auth/facebook path. its working fine.
So,
need to logout already opened facebook accounts in browser tabs, before i hit add facebook link in my page.
Can anyone help?
thanks.
by deafult, you cannot log in multiple facebook account within one browser unless you have a method to trigger browser(like private browsing-mozilla, incognito Window-chrome ) to let your user sign in. websites uses cookies to track their status.
however, facebook do provide auth_type=reauthenticate.
which the doc is here.
https://developers.facebook.com/docs/howtos/login/client-side-re-auth/
Any correct me if im wrong.

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

Simplemodal with iframe not redirecting

My site is built on the zend framework. I have a link on my site that opens an iframe in order for a user to post to twitter. I can load the iframe just fine, but if the user has not yet authorized twitter, the iframe redirects to the twitter authorization page, and then back to my site.
When I test the flow by hitting the page directly that loads into the iframe, everything works fine. However, within the iframe, the redirects do not load, so the iframe is simply a blank page.
My redirect from within the page loaded in the iframe looks like this:
return $this->_helper->redirector->gotoUrl("http://twitter.com/oauth/authorize?oauth_token={$session->token}");
The reason, twitter has disabled this, is that you can't see the address bar in an iframe. So web apps could do easy fishing: telling the user to input his/her twitter user/passw into a form which just looks like the twitter sign in form, but is in fact hosted on the fishing server.

Categories