» Basic Facebook Graph API Dynamic Plugins
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Basic Facebook Graph API Dynamic Plugins

plugin

about

I have done some facebook graph api dynamic plugins that should not get burried on my hdd so i would like to share them here. These are my first attempts on c#, so the code may be bit clumsy, but beeing honest the important crucial parts are copy pasted anyway. A nice fact is, that you do not need any external facebook sdk.

These are five examples for talking with the facebook graph api from within vvvv:

  • List a users albums.
  • List an albums photos.
  • Create new albums.
  • Upload photos to an album.
  • Basic posts to a wall

All the hard work really is done by the WebClient class:

WebClient.DownloadDataAsync
WebClient.UploadDataAsync
WebClient.UploadFileAsync

are really straight forward and easy to handle methods.

You can of course use these to call other graph api´s functions like:
Read the feed, comment something, like something, list friends ..and many others. You just have to provide the right URI and valid parameters for a particular api call.Find more details at facebook´s developer pages:
http://developers.facebook.com/docs/reference/api/

Notes:

Please mind that you will need a facebook developer account to be able to work with these plugins. This requires registering by mobile phone or creditcard number.

These plugins are meant to be used with an offline access token. There is no "on the fly" authentication but a helppatch is provided for getting started with a facebook app and access token stuff.

Thank you for helping me out in the forums on the plugin topics. Special thanks go to frank at frank-it-beratung.com who made wonderful and easy to follow tutorials on the webclient stuff and facebook communication. -> http://frank-it-beratung.com/blog/?s=facebook

Honorable mentions in dev: philip :)

update:

According to the Garph API changelog,

these Plugins will expire on 30.04.2015

See: https://developers.facebook.com/docs/apps/changelog
They were written against the 1.0 Version of the API

download

Facebook Plugins.zip
17.12.11 [15:31 UTC] by tgd | 1441 downloads

u7angel 17/12/2011 - 16:59

great, do you need a job ? :)

tgd 17/12/2011 - 17:37

:)

sansui 20/07/2013 - 08:44

does not work anymore?
I tried it with https://developers.facebook.com/tools/explorer/ access token, but it doesn't work.

tgd 22/07/2013 - 14:54

Not sure about this, since i do not have access to a facebook dev account anymore. so i can not test. Also think that token from graph api explorer page is not the right one to use, since it is a temporary one and also does not connect to a specific app.
Please follow the steps from HowToAccessToken.v4p

sonostrano 29/08/2013 - 17:05

still works ;)

io 11/12/2013 - 21:38

is it possible to target a specific page and not the profile of the author of the application?

gltshhh 20/01/2014 - 15:14

@io have you found a way to post to a fanpage? i could use that feature

graphicuserinterface 19/04/2015 - 04:41

what version of the api is this?, does not work, thanks

tgd 20/04/2015 - 11:22

Just checked the versioning and availability at https://developers.facebook.com/docs/apps/changelog
The plugins were written against the 1.0 version from 2010 and should "expire" in 10 days (30.04.2015), lol. What a timing.
You mind to tell what is broken already or errors?
I still can not test it myself.

anonymous user login

Shoutbox

~4mth ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~5mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~5mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~5mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~5mth ago

~5mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~5mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~5mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~6mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~6mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/