moviepilot / zuck

Access Facebook's ads api with ruby
MIT License
86 stars 40 forks source link

Write.create fails? #5

Closed runa closed 10 years ago

runa commented 10 years ago

Hey :)

I'm working in adding support for Custom Audiences; but when I try to create one, FB replies:

{"id"=>"6013741415461"}

and Write.create raises an exception, because there's no "data" key.

I saw that FbObject.create_connection uses Koala::Facebook::GraphAPIMethods#put_connections which is supposed to return "a hash containing the new object's id".

So I cannot understand if this ever worked (?)

Since my FB App doesn't has permissions to create anything else, I cannot test creating the already supported objects.

Any hints?

runa commented 10 years ago

Ok, I understand, (Custom Audiences)[https://developers.facebook.com/docs/reference/ads-api/custom-audience-targeting/] return just the id when created, not the full object info.

jayniz commented 10 years ago

Alrighty :-) Looking forward to your pull request!

runa commented 10 years ago

Saw it? https://github.com/moviepilot/zuck/pull/6