Permalink
Browse files

Version bump to V0.4.4 + README/Doc update

  • Loading branch information...
1 parent 290f70a commit fc9eaf4ef4405529b526a2bf0e56b972188663ae Benoit Hediard committed Nov 15, 2012
@@ -2,7 +2,7 @@ import grails.plugin.facebooksdk.*
class FacebookSdkGrailsPlugin {
- def version = "0.4.3"
+ def version = "0.4.4"
def grailsVersion = "2.0 > *"
def author = "Benoit Hediard"
View
@@ -34,7 +34,7 @@ grails.project.dependency.resolution = {
}
plugins {
//here go your plugin dependencies
- runtime ':facebook-sdk:0.4.3'
+ runtime ':facebook-sdk:0.4.4'
}
}
```
@@ -75,6 +75,7 @@ Project documentation is located here :
WARNING: Since V0.4.0, _FacebookApp_, _FacebookSdkFilters_ and _FacebookAppService_ from V0.3.* are DEPRECATED and have been replaced by _FacebookContext_.
Please check [FacebookContext](http://benorama.github.com/grails-facebook-sdk/guide/facebookContext.html) doc for more info.
+* 2012-11-15 **V0.4.4** : for photo/video publishing, _FacebookGraphClient_ _publish_ method accepts now _InputStream_ argument type (instead of _FileInputStream_ only)
* 2012-10-29 **V0.4.3** : tag lib improvements: channel integration (_initJS_ tag and _FacebookSdkController_ created), resources plugin integration (_FacebookSdkResources_ created)
* 2012-10-10 **V0.4.2** : bug fix in batch responses error handling
* 2012-09-25 **V0.4.1** : bug fix in server side OAuth redirect
@@ -14,7 +14,7 @@ grails.project.dependency.resolution = {
}
plugins {
//here go your plugin dependencies
- runtime ':facebook-sdk:0.4.3'
+ runtime ':facebook-sdk:0.4.4'
}
}
{code}
@@ -134,10 +134,16 @@ h3. Publishing a Photo or a Video
{code}
// Publishing an image to a photo album is easy!
// Just specify the image you'd like to upload and RestFB will handle it from there.
-def publishPhotoResponse = facebookClient.publishFile("me/photos", [message, "Test cat"], "/cat.png")
+def publishPhotoResponse = facebookClient.publishFile("me/photos", [message, "Test cat"], "/Users/ben/Downloads/cat.png")
+println "Published photo ID: " + publishPhotoResponse.id
+// Publish a submitted file
+def publishPhotoResponse = facebookClient.publishFile("me/photos", [message, "Test upload"], multipartFile.originalFilename, multipartFile.inputStream)
+// Publish an existing remote file by URL
+def someUrl = "http://www.google.com/images/logo.gif"
+def publishPhotoResponse = facebookClient.publishFile("me/photos", [message, "Test logo"], "logo.gif", new URL(someUrl).openStream())
println "Published photo ID: " + publishPhotoResponse.id
// Publishing a video works the same way.
-facebookClient.publish("me/videos", [message, "Test cat"], "/cat.mov")
+facebookClient.publish("me/videos", [message, "Test cat"], "/Users/ben/Downloads/cat.mov")
{code}
h3. Deleting
@@ -21,6 +21,7 @@ WARNING: Since V0.4.0, @FacebookApp@, @FacebookSdkFilters@ and @FacebookAppServi
Please check [@FacebookContext@|guide:facebookContext] doc for more info.
{warning}
+* 2012-11-15 *V0.4.4* : for photo/video publishing, @FacebookGraphClient@ @publish@ method accepts now @InputStream@ argument type (instead of @FileInputStream@ only)
* 2012-10-29 *V0.4.3* : tag lib improvements: channel integration (@initJS@ tag and @FacebookSdkController@ created), resources plugin integration (@FacebookSdkResources@ created)
* 2012-10-10 *V0.4.2* : bug fix in batch responses error handling
* 2012-09-25 *V0.4.1* : bug fix in server side OAuth redirect

0 comments on commit fc9eaf4

Please sign in to comment.