We plan on building a PhoneGap App and want to give the user the possibility to share information on Facebook.
We wonder if this is possible with the FB JavaScript SDK without leaving our app that means without having FB open its Share Dialog.
Well, and when it is possible does anyone know of an tutorial which kind of describes how we will do this?
If you ask for PUBLISH_STREAM permission from the user, there will be no dialog at all.
Related
One of my sites has a custom share plugin that I've written and I would like to try to get the 'sharing' feature to open up in the native Facebook app if possible. I know that you can use fb:// to open up the app but from what I've read, this is part of FBML which has been deprecated for several years. What I ideally would like is to have the link open up the FB app with a pre-populated link in the share box that the user could then just automatically share. Basically the functionality of the sharer.php script (it's ok if it pulls the data from the OG tags).
I know it can be done in iOS apps (and probably Android) but is it possible to do through a web interface?
I have the links I'm using only showing on mobile devices through some Javascript so I wouldn't have to worry about it causing any problems sitewide.
Thanks for your help!
var url = encodeURIComponent('http://example.org/');
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+url,
'Share on Facebook',
'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600'
);
That's the simplest way I do it ;)
I have an app on facebook. Through my site, I open, using JavaScript, a popup. The querystring appearing on Facebook developers site (https://developers.facebook.com/docs/reference/dialogs/feed/) which is:
https://www.facebook.com/dialog/feed?
app_id=458358780877780&
link=https://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
redirect_uri=https://mighty-lowlands-6381.herokuapp.com/
The popup works well and everything is ok.
When I change the app id parameter to my app id, it's not working and it displays "An error occurred...".
What is the reason for that?
Another question related, I moved to facebook feed dialog because the Facebook sharer didn't show certain images. Is it possible to make the facebook feed dialog look like the share option?
Thanks,
Make sure you specified App Domain and Site URL. Those have to point to the server where your Share Feed Dialog will be triggered from. As for testing it can point to local host.
Example:
App Domain: localhost
Site URL: http://localhost:12345/
Good luck!
Marta
I want to make a facebook login button in my application using javascript SDK of facebook, the problem is when I tryed to login with facebook it opens the default browser showing an error telling url problem having issues with cross domain.
I would like to know if I can make the button without any plugin because when I search on google I always find plugins to make the facebook dialog be into the app and how to fix that problem to be able to load that dialog without having ajax communication problems.
I know to do this we need to have a facebook application to get the app ID and use the API with it but I'm using heruko hosting
I' need to know about the channel.html file how to use it to make cross ajax requests with the app.
thats all thank you for your help in advance.
I wrote a basic workflow for making a facebook login app using the childbrowser -
https://github.com/DrewDahlman/phonegapFacebookApp
That should point you in the right direction.
I am developing a web application for PC/Tablet/Mobile phones, and I want to integrate Google+ Sharing onto it.
But seems that the url https://plus.google.com/share?url=http%3a%2f%2fstackoverflow.com has blocking iframes...
prove that it doesn't work: http://jsfiddle.net/6ML4d/
isn't there any other way to do that?
P.S The server side of my application is ASP.NET MVC and the client side is jQuery Mobile.
You can take a look at this chrome extension:
https://chrome.google.com/webstore/detail/pfphgaimeghgekhncbkfblhdhfaiaipf
It allows you to view your google+ notifications. The developer made it in some way possible to embed something on https://plus.google.com that normally isn't possible.
Refused to display document because display forbidden by X-Frame-Options.
See here for supposed solution
I have found that there are some pages on google servers which allow iframes, but they are not complete . (for example, if user is not logged in, again we have another problem)
So, the best choice is not using iframes!
I guess the title is clear enough.
I would like to import the Javascript SDK of Facebook inside a Spotify App. Mainly to use the Dialog feature.
Does someone know if it is possible?
possible answer/workaround. https://developer.spotify.com/technologies/apps/docs/beta/09321954e7.html
the API has a showAuthenticationDialog, but what it actually does is that it shows a popup that closes when the url parameter is loaded inside that popup. if the authenticatewith facebook isn't enough for you then this might be a possible solution to use, you can use it with facebooks page too. if you just open a link regularly it will open up outside Spotify.
you still might be able to use the facebook js sdk though, but if it uses popups you'll need to use this in it instead.
You don't need the JS SDK to use the Dialog feature. All dialogs have a plain old URL you can send users to (within a popup, or the main window).
For example, the Feed dialog:
https://www.facebook.com/dialog/feed?app_id=YOUR_APP_ID&redirect_uri=YOUR_REDIRECT_URI