Browser blocks popup - facebook

I have a page where there is a textbox for status to type. When I click on the button "Update" I need that status to be updated in "Facebook" and "Twitter" in sequencial order. Also we need to check if the user is logged in with "Facebook" and "Twitter" or not
Currently what I am facing problem is my browser allows "Facebook" popup for authentication and post the status. But when the time comes for the twitter authentication, it is being blocked by browser. Is there any way to show both of the popup appear sequentially.

IF the browswer is allowing for facebook popup to appear and not twitter there are two possible issues,
That the issue already existed for facebook at one point and you clicked always allow from facebook in regards to popups.
How the "popup" is generated, as you have no code I cannot guess as to what you have done to generate such a "popup" but my guess is no, if you are literally opening a new window or "popup" and the clients browser settings are to deny that action, your pretty much out of luck.
Again I cannot further diagnose you problem without any code

Related

How to add another Facebook App Tab to my fanspage

I used a facebook connect app (A) in my website, and I owned anther app (B). They both have own tab.
User login as facebook though (A) in my website, and I want user add (B)'s tab page to their fanspage. How can do this?
There are several possibilities for this, i prefer the following:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=http://www.facebook.com
You can give that link to any user, and he will be able to add the App to his Page. you can also change the "next" parameter, but it has to be owned by the app. Does not matter anyway, it is just a redirect after success.
It does not open a dialog, so if you want to present this in your app, this solution might be better:
https://developers.facebook.com/docs/reference/dialogs/add_to_page/
But as you commented, this does not work for other Apps. The best solution might this one then:
https://developers.facebook.com/blog/post/611/
See "Adding an app to a Page", it is basically the link i have posted but with a JS popup.
edit:
Actually, there might be another option, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
"You can install a profile_tab at the end of the current list of installed tabs for a page by issuing an HTTP POST request to PAGE_ID/tabs with a Page Access Token..."

Adding Facebook Apps to Page Tabs

I have googled and googled around for this and found the blog post from Facebook about remove app profile pages etc. I also found that you can go to this link:
https://www.facebook.com/dialog/pagetab?app_id=[ID NUMBER HERE]&display=popup&next=[URL OF YOUR DOMAIN]
The problem is what do i put in URL OF YOUR DOMAIN. I cant put a site url in the app settings because its not a web site application, its a page tab application. Any combo of URL's i try, it just errors with "URL not owned by application"
Any ideas or experiences with this?
Use FB.ui method of JS-SDK with method pagetab as shown in example of Add Page Tab Dialog documentation this will automatically provide needed info to dialog.
FB.ui({method: 'pagetab'}, function(){
// User either closed dialog or added tab, you can call Graph API to check...
});
You have to register the URL first with Facebook and then use it. First go to http://developers.facebook.com. Then go to your app and hit [Edit App]. At the Basic Info section, you'll find a textbox requesting you to enter the APP Domain. Once you save it will work fine.
I simply entered www.my-domain.com, no http, no slashes.

Send button returning error codes, like button works fine

I have a like/send button that I've set up on a customer's home page. I have it pointed at their facebook profile page so that when people like them either from facebook or on their homepage, it's always liking the same thing.
Anyway, I've used the fb social plugins page to create the fbxml, and I'm having a problem with the send button. The like button works wonderfully, but the send button doesn't want to cooperate.
First, I had the button set up using "http://www.facebook.com/AFEDEWA" as the link to like/send. However, with the button(s) configured that way, when you click on Send you get an error message that says "The page at ttp://www.facebook.com/AFEDEWA could not be reached because the server returned status code 200."
So I did some digging on the 'net, and found some info that seemed to indicate that maybe the send button didn't like the alias / page name. I tried putting in the page id instead, and when I do that I get a different error: "The page at ttp://www.facebook.com/profile.php?id=165721903513327 could not be reached."
(I removed the h in the front of the links in those messages because the board was complaining about too many links. But the actual error message has the http in full :) )
The link works either way if you c/p into your browser, and also works fine with the like button. It would appear that the send button has some issues? Maybe needs to handle redirects instead of returning a 200 OK message.... ?
Any thoughts would be greatly appreciated. If you want to see the like/send button in action, this is the website it's set up on: http://www.coolersecurityadvisors.com
thx!
After checking the buttons on the upper right, I found an issue. It seems like you can not Like/Send URL's of real Facebook Pages using the Like/Send button. Facebooks URL debugger always comes up with the error "Facebook can not crawl itself".
If you just want that people share a link to your Facebook Page, simply create a file on your server, implement the OpenGraph Tags you want to show up on Facebook (title, image, etc.) and output this in case the Facebook crawler is visiting this site, if it's not the Facebook crawler, redirect the user to https://www.facebook.com/AFEDEWA
Fix up the 8 warnings from https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.coolersecurityadvisors.com%2F and I think that might help solve the problem.

FB Canvas authorization redirection is kicking me out of FB

I have a Canvas application that allows the user to first see what it's all about, and then asks for permissions only if he wishes to perform certain actions.
When the user enters the application it starts without requiring permissions. We provide a "Login" link which will make a request to
https://www.facebook.com/dialog/oauth/authorize?client_id=XXX&redirect_uri=http://myapp.com&scope=publish_stream
This causes the Facebook logo to appear with a link that says "Go To Facebook.com". I understand that there are cross-frame problems that causes this, and can be fixed by simply putting target=_top onto the link (or playing around with Javascript). For now, I want to keep things simple so I don't use this. I do notice that this is in a iframe_canvas which is good, so I click on that link and get to "Request for Permission" which takes over the screen (didn't this use to be a popup?) and the iframe_canvas seems to have gone away, and I now have UIFullPage_Container.
I click Allow and Facebook redirects the browser to
http://myapp.com&code=XXXXXXX
This is bad because my "Canvas" application has broken out of the canvas and taken over the whole browser.
Is there something I'm doing wrong, or is this some type of Facebook bug? Do I simply redirect this back to http://apps.facebook.com/mycanvasapp, and if so is there some way to pass some parms?
Just redirect them to https://apps.facebook.com/yourcanvasapp/whateveryouwant?here=isokay. The part after yourcanvasapp/ is sent to your server. You'll get the signed_request as a post arg, and the other params and path in the query string.
In other words, if your secure canvas URL is https://myapp.com/fbapp/, and you send the user to https://apps.facebook.com/mycanvasapp/foo?bar=baz, Facebook will send a POST to https://myapp.com/fbapp/foo?bar=baz and signed_request in the POST-data.
Maybe I'm missing something here, but how is not using target=_top keeping things simpler? It is actually what Facebook is forcing you to do anyway by displaying the "Go to Facebook.com" link; it's implementing a top-level redirect because it's necessary for it to display the permissions dialog page. So why not just do it yourself and save the user a potentially confusing intermediate step?
As far as getting back into the iframe, it would probably be easier to use apps.facebook.com/yourapp/somepage as your redirect_uri and that way it will go directly back into "app" mode.

Is there a "share this" for Facebook which isn't a pop-up?

I want to add "share this on Facebook" to a page. I've got this working just fine using this URL format:
http://www.facebook.com/sharer.php?u=my.url.here
but the problem is, that's designed specifically to be a popup window, so
the page looks weird at full browser size
the buttons are a long way from the fields
after submission, the page has messages in it like "this window will close shortly"
So, is there a Facebook URL which can do the same thing, but which isn't intended as a popup?
Check out Facebook Connect
http://developers.facebook.com/connect.php
It is there new JS API...
The method you want to call when you get everything lined up is:
FB.Connect.showFeedDialog(bundle_id, post_data, null, null, FB.FeedStorySize.full, FB.RequireConnect.promptConnect, function (w) {alert('shared');});
facebook connect javascript SDK has been changed..
its here https://developers.facebook.com/docs/reference/javascript/
Thanks