Home Ask Login Register

Developers Planet

Your answer is one click away!

Per February 2016

Facebook Share dialog without a link

It is possible to show a facebook share dialog (with javascript) without including any link. I would like to share a dynamic created image to the current users wall.

I know I can post an image through the FB.api like the following, but I would like it done in a dialog instead.

var wallPost = {
            url: 'http://www.mypagethatgeneratestheurl.aspx',
FB.api('/me/photos', 'post', wallPost , function(response) {
          if (!response || response.error) {
            alert('Error occured');
          } else {
            alert('Post ID: ' + response);


luschn February 2016

No, there is only the Feed Dialog (with custom link and picture) and the Share Dialog (with link only and the rest comes from the OG tags). "Sharing" is for links only, you canĀ“t just "Share" a picture, you have to upload it. And that is only possible with the API call you posted.

Post Status

Asked in February 2016
Viewed 1,946 times
Voted 4
Answered 1 times


Leave an answer

Quote of the day: live life