Writing to walls and commenting on photo's using Facebook API 01-12-2014, 04:36 PM
#1
My code to write on my own wall:
I tried using my friends ID's and trying, but it doesn't work, and instead posts on my own wall, I'd like to know how so maybe I could add a loop to spam the wall too.
As for commenting on Facebook photos, my code is:
I tried that and it says name isn't defined, but I feel like even if I did it didn't work because the ID isn't the right one.
PHP Code:
import fb
auth="token"
var=fb.graph.api(auth)
facebook.publish(cat="feed", id="ID of my account here", message="hi")
I tried using my friends ID's and trying, but it doesn't work, and instead posts on my own wall, I'd like to know how so maybe I could add a loop to spam the wall too.
As for commenting on Facebook photos, my code is:
PHP Code:
import fb
auth="token"
var=fb.graph.api(auth)
facebook.publish(cat="comments", id="the photo ID which is located where it says fbid=<num here> I think", message="Msg here")
I tried that and it says name isn't defined, but I feel like even if I did it didn't work because the ID isn't the right one.
Unleash the lead from my pistol into my head bumpin' crystal
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)