Botón Me gusta de Facebook en la aplicación nativa de iPhone

I want to implement facebook like button in my native iphone app. So that user can like my facebook page . I am already sharing facebook status updates, but am unable to implement like button.

I was unable to find any helpful resource on web.Por favor, ayuda.

preguntado el 04 de julio de 12 a las 07:07

1 Respuestas

Aaaand here's one I prepared earlier (using FBConnect, the FB api): If you have the id of the post as postId

NSString *graphPath = [[NSString alloc] 
                                       initWithFormat:@"%@/likes",
                                       postId];
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[[delegate facebook] requestWithGraphPath:graphPath andParams:params andHttpMethod:@"POST" andDelegate:self];

of course you'd need to change how you got the Facebook singleton (I used [delegate Facebook]).

Respondido 04 Jul 12, 07:07

And if you aren't using the FBConnect api... I can't help. - Albañil de piedra

This may be used to like posts but not URLs or Pages - Guionista jugoso

Ahhh, oh well. My bad. Should I delete the answer? - Albañil de piedra

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.