facebook publish: support liking pages #349

Closed
snarfed opened this Issue Jan 20, 2015 · 10 comments

Comments

Projects
None yet
3 participants
Owner

snarfed commented Jan 20, 2015

as requested by @tantek in #41. the problem is that the page has a username, and FB requires ids in API URLs, not usernames. the fix is to look up the object by username first, then use its id.

snarfed added a commit to snarfed/granary that referenced this issue Jan 21, 2015

Contributor

tantek commented Jan 22, 2015

Another real world example: http://tantek.com/2015/021/f2 :)
I noticed this seems to "work": https://graph.facebook.com/dybrkr (not logged in) to provide:
{
"id": "919990134684895",
...
}
Is that the ID you're looking for?

@snarfed snarfed self-assigned this Jan 22, 2015

Owner

snarfed commented Jan 22, 2015

thanks for looking! yup, that's it. if only it worked for users in v2.x! poor #350.

i'm actually already mostly done implementing this. stay tuned!

Owner

snarfed commented Jan 22, 2015

goddammit. from https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes#publish :

You can't publish using this edge, as it is not possible to like a Facebook Page via any API. You should use the Like Button if you want people to be able to like a page in your app.

f'ing facebook api. i need a drink.

snarfed added a commit to snarfed/granary that referenced this issue Jan 22, 2015

@kylewm kylewm reopened this Feb 2, 2015

Owner

snarfed commented Feb 2, 2015

sigh. should we just give up and declare facebook publish bankruptcy? :p

I honestly wonder if scraping and imitating a browser would be easier or more reliable, short-lived auth cookies notwithstanding. (kidding... kinda...)

Collaborator

kylewm commented Feb 2, 2015

I do honestly think we should give up publishing responses to Facebook...

Owner

snarfed commented Feb 3, 2015

:(

(that's my disbelieving, then sad, then resigned face.)

ok. so. for completeness, what do we have to do first to exhaust all possibilities? post an SO question, include all of our research so far, and attach a big fat bounty? find a personal connection at facebook and ply them for information? anything else?

Owner

snarfed commented Feb 4, 2015

moving discussion to #350

@snarfed snarfed removed their assignment Feb 4, 2015

Owner

snarfed commented Feb 5, 2015

tentatively blaming #350. holler if you disagree.

@snarfed snarfed closed this Feb 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment