agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

Image upload Error #15

Closed confile closed 11 years ago

confile commented 11 years ago

First of all it is now working. But there are some errors in your doku. This is the correct notation:

def publishPhotoResponse = facebookClient.publish("me/photos", [message: "Test Image"], "logo234.jpg", new URL(linkUrl).openStream())

Why do you need a name of the file when you send and URL?

And:

The method is not publishFile it is publish

benorama commented 11 years ago

I've updated the doc.

FileName is required but the underlying RestFB java lib... (BinaryAttachment class)