I am trying to open the Facebook app from inside my app using an intent. I am using codename one to create my app and I am trying to link to a facebook group.
My current code is as follows:
Boolean canUseIntent = Display.getInstance().canExecute("fb://group/{id}");
if(canUseIntent != null && canUseIntent) {
Display.getInstance().execute("fb://group/{id}");
} else {
Display.getInstance().execute({url});
}
I get the group id using the Graph API explorer and I have tried more than one group.
The problem I am getting is that it opens the app fine but then displays a message saying it can't find the page.
In my attempt to get it to work I have also used fb://page/{id}, fb://groups/{id}, fb://feed/{id} and fb://facewebmodal/f?href=url.
Can anyone make any suggestions as to what I am doing wrong?
Thanks.