Also please let me know if im wrong, ie, if it does actually work, and it
can like a page. On android its spinning out on iOS it says "the
redirect_url must be absolute" this is a fb error but i cannot get rid of
it. None of that matters anyway if you can only like posts.
Native question : if I do this natively will it work? it looks like the iOS
code has to actually add the fb like "view" itself to another view, see
here:- will this code actually add the button to my view? and if so where?
and how do I change where it goes?
@implementation ViewController- (void)viewDidLoad {
[super viewDidLoad];
FBSDKLikeControl *likeButton = [[FBSDKLikeControl alloc] init];
likeButton.objectID = @"https://www.facebook.com/FacebookDevelopers";
likeButton.center = self.view.center;
[self.view addSubview:likeButton];}@end
On Thursday, May 26, 2016 at 11:11:14 PM UTC+8, Gareth Murfin wrote:
>
> Got it all done with no errors and I log into fb fine, but then when I hit
> the like button I just see a spinner going. Also tried the webview approach
> which works but users had to log in every time. So I am thinking this is
> not possible at this time (I am assuming the cn1 fb wrappers are out of
> date, hence there is no way to like a page only a post- I believe things
> have maybe changed in the real fb sdk recently), I will tell client I will
> have to write native lib to do this. A good tutorial on adding a fb like
> button in cn1 that allows you to like a page would be great.
>
> On Thursday, May 26, 2016 at 10:03:13 PM UTC+8, Gareth Murfin wrote:
>>
>> ok its not as bad as i thought, not checked ipa size that might be what
>> im remembering that held me back. But yeh, is there a way to like a fb PAGE
>> and not just a post?
>>
>> On Thursday, May 26, 2016 at 8:15:01 PM UTC+8, Gareth Murfin wrote:
>>>
>>> All that facebook connect stuff is beyond a nightmare if i recall, after
>>> lots of trying I took it out. I have the code somewhere in here still but I
>>> have also commented it out saying it made my IPA huge. How much does the
>>> .ipa grows by including facebook connect etc? It is suprisingly hard to
>>> simple make a like happen on fb ;-/
>>>
>>> On Thursday, May 26, 2016 at 7:55:28 PM UTC+8, Gareth Murfin wrote:
>>>>
>>>> Ah ok will try, also can you like a page with this? or just a post?
>>>>
>>>> On Thursday, May 26, 2016 at 12:30:02 PM UTC+8, Shai Almog wrote:
>>>>>
>>>>> A like button will only work if you are authenticated to Facebook. Did
>>>>> you go thru the FacebookConnect authentication?
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/2d959b1a-7e2e-4ebf-b24e-2973ada14a34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.