equivalent to link attribute in new share dialog - facebook

According to fb, the feed dialog is now deprecated, so I'm trying to use the new share dialog with open graph metas, all work however, the old feed dialog had a link attribute to point to any URL I want, my question is, is there anything similar in the new share dialog, the reason I need this is because my app is going to be loaded inside an iframe in different domains and I need to change the URL dynamically, thanks for any help

Related

Facebook Open Graph: URL to use for sharing?

I am creating a customised Facebook share button. The idea is upon clicking on the Facebook share button, it will pick up the meta tags on the page and prefill the share information with a title, description and image that have been curated.
What URL should I be using for the button?
There is https://www.facebook.com/dialog/share
and https://www.facebook.com/sharer/sharer.php
I heard the latter has been deprecated? And you can append a whole bunch of information to the URL as well?
I can't quite figure that out.
sharer.php is not deprecated. It was, for some months, but you can definitely use it. The benefit of using sharer.php is that you don´t need to create an App. It´s the easiest way to implement sharing.
Keep in mind that sharer.php ONLY takes the URL as parameter, everything else will get loaded from the Open Graph tags.
For example:
https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ffacebook.com%2F

Share image including some attributes (e.g. description) on Facebook over web without app validation hassle

I want to share an image from a website on Facebook and pass some attributes (e.g. a description) to the status update, all done by clicking on a link.
A few months ago this worked fine using the sharer.php but by now this script just accepts a URL as parameter and scrapes the target site for Open Graph meta tags. This new approach isn't very helpfull if you just want to share elements on a page instead of the whole page.
Yeah, I could create an app and use the feed dialog to achieve my goal. But I honestly don't want to walk through the tedious app validation process just to share an image with some additional info!
So, does anyone know of a way to avoid this app hassle? Perhaps some undocumented parameters for the new implementation of the sharer.php?
There's no need for app validation - as #CBroe correctly stated! So the feed dialog IS an adequate solution!
Background: I assumed an app needs validation to go live. But I just didn't set up my app properly to make it available to every Facebook user.
See the comments to gloat over my stupidity. ;)

Share bought products from order on buyer's Facebook wall

The company I'm currently working for wants to create a button that lets people share their order on Facebook after they've paid, but with the deprecation of the "Share" button I don't really know how to do it.
The "Like" button does not seem fit for this. Any ideas, anyone?
There are a few ways to go about this.
You can use the standard sharer. This is good for one-off sharing or in cases where you don't have control or don't want to control how the share is rendered and you want Facebook to handle it.
http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>
It won't require you to have an app ID but you also won't get a nice control panel for your applications sharing history/insights. You can query and get some information about the URL your sharing though by looking through the open graph.
I.E
https://graph.facebook.com/?ids=http%3A%2F%2Fwww.cnn.com
https://graph.facebook.com/comments/?ids=http%3A%2F%2Fwww.cnn.com
You can set the URL and Title of the content. The sharer will then look at the metadata on the webpage your sharing to determine the contents of the share. More below.
You can also use the Feed dialog. Which comes with more customization options. The Feed dialog is the best option if your integrating sharing as an integral part of the application. I think at minimum you need to include the app_id,redirect_uri and link property. Look through the properties here. You will need an app ID to use this feed dialog and if your using the JS api you need to authenticate the user too. You can also invoke the dialog directly through a direct url where you don't need to pre-authenticate the user.
With either sharing method, you may wish to include custom open graph metatags on your webpage. This way you can influence how the Facebook scraper makes your share. You can set some default (pre-accepted by Facebook) open graph metatags on your page. Or you can create your own set now in the dashboard. In the Open Graph dashboard on Facebook you can customize how Facebook is supposed to read and interact with your metatags.
You can debug your pages open graph metatags by passing your URL through the debugger.
I.E
http://developers.facebook.com/tools/debug/og/object?q=www.cnn.com
This will give you, for example, JSON or an HTML representation of how FB sees the page.

Is it possible to embed a facebook feed dialog on a web page?

I'm trying to figure out if it's possible to embed the facebook feed dialog on a page rather than have it popup overlayed on the page.
I've followed the instructions here and get it to popup, but dont' know if it's even possible to have it embedded on the page. https://developers.facebook.com/docs/reference/dialogs/feed/
Thoughts?
Check out display parameter in Common Dialog Parameters.
According to that you can show a dialog as a page,iframe,popup.
Using an iframe could be useful in your case, for which you will need a valid access_token.
Hope this helps
Yes, I just wrote up how to do this along with a workaround for specifying the recipient here: Letting user specify recipients within Feed Dialog
No, you cannot embed it to the page.
basically it is either popup or lightbox.
see the link provided by Dhiraj Bodicherla

Link from Wall to Application Tab that do not open a new window

I know this is meant for programming questions, but I just can't seem to find any information on this anywhere, so here goes nothing:
I have a Facebook page to which I added a custom Application tab. Now I'd like to be able to post a link to that Application tab that doesn't open in a new window/browser tab.
Using an url shortener I was able to post the link, but when clicking the link the url is opened in a new window, which in my opinion is not necessary. I'd like to know if there is a way to not open a new window.
Thanks a lot in advance!
You cannot change the default behavior of the facebook wall. If is there where you want to post the link, you have nohing to do with it. Sorry.