02-27-2013 09:37 AM
hey guys
does anyone have the code to how to invoke a facebook page?
have been able to do it with foursquare but still stuck with fb
many thanks for you help
02-27-2013 11:19 AM
this link has the info for invoking applications, for facebook you could invoke it directly or invoke the browser & re-direct it to a specific facebook page
02-27-2013 11:33 AM
jep i tried it with those infos but how does the code lines have to look like?
the foursquare ones look like this:
Invocation {
id: fsqrInvoke
query: InvokeQuery {
mimeType: "text/plain"
uri: "foursquare://venues/4b5af37df964a520e0db28e3"
invokeActionId: "bb.action.OPEN"
}
}
02-27-2013 11:49 AM - edited 02-27-2013 11:53 AM
I don't have a sample but, i read over the Facebook docs & if you're trying to bring up your page, you'll need
to set the metadata of the request object to a QVariantMap that contains the following entries:
QVariantMap payload; payload["object_type"] = "page"; payload["object_id"] = "328506290597521"; // BlackBerry NA Facebook page request.setMetadata(payload);
Button {
attachedObjects: [
Invocation {
id: invoke
mimeType: "text/html"
uri: "http://www.facebook.com"
targetId: sys.browser
}
]
onClicked: {
invoke.trigger("bb.action.OPEN")
}
}
03-01-2013 09:10 AM
this will open the browser - for that I even have an easier way:
Invocation {
id: fbInvoke
query: InvokeQuery {
mimeType: "text/html"
uri: "http://facebook.com/thecoffeeshophamburg"
invokeActionId: "bb.action.OPEN"
}
}
but I want to open it in the native fb app
03-01-2013 11:55 AM
using c++
void InvokeApp::invokeFacebook(){
InvokeManager invokeManager;
InvokeRequest request;
request.setTarget("com.rim.bb.app.facebook");
request.setAction("bb.action.OPEN");
QVariantMap payload;
payload["object_type"] = "page";
payload["object_id"] = "328506290597521"; // BlackBerry NA Facebook page
request.setMetadata(payload);
invokeManager.invoke(request);
}