01-31-2013 02:26 PM
01-31-2013 11:17 PM
This is awesome. Thank you Kyle!
![]()
Do people really want their phone making decisions for them? Whatever happened to the human element? Stop this madness!
02-01-2013 01:24 AM
02-01-2013 02:31 PM
02-01-2013 03:39 PM
kylefowler wrote:
There a small bug where the access token json is invalid json. Whoops.
You will have to parse the response to pull the token out, but that should be pretty easy.
QString response;
response.split("\"").at(1) //should give you the token
will this survive updates from your app ? perhaps at first test if valid JSON and if not, then parse and pull ?
02-01-2013 06:02 PM
02-26-2013 08:48 AM
today I started to integrate Foursquare
went to foursquare developer and registered my app
got a CLIENT ID and SECRET CLIENT ID
then I tried to SSO with Foursquare and got an error
Connecting failed
<my-app> has a configuration problem and was unable to connect to your foursquare account.
Cause for error: redirect_uri_mismatch
----
I have to say I had no idea what I should put into the redirect-uri field while registering the app,
so I used the same as my welcome-page-url
If someone has an idea what to enter into this field would be great
02-26-2013 11:15 AM
Kyle,
another question about onPageSuggestion.
I tried to get a value into the Search Field which appears together with the Pages,
but its always empty.
constructed the query similar to Venue Search which works well.
InvokeRequest cardRequest;
cardRequest.setTarget("com.foursquare.blackberry.u ri");
cardRequest.setAction("bb.action.OPEN");
QUrl uri = QUrl("foursquare://users/suggest");
uri.addQueryItem("type", "page");
uri.addQueryItem("query", "xyz");
cardRequest.setUri(uri);
mInvokeManager->invoke(cardRequest);
type=page was used
query=xyz was not used
thx for cool Foursquare integration
02-26-2013 11:37 AM
02-26-2013 11:52 AM - edited 02-26-2013 11:53 AM
kylefowler wrote:
Sorry Ekke, I should have added that as a comment in the sample and I'll add it now but the callback should be http://localhost
works now perfect. my app is connected ![]()
kylefowler wrote:
Second part, yeah the query param isnt mapped to the page search yet. That is something I could add, but would have to be included in an app update at some point in the future.
so I let the query=xxx in my code and one day by magic it will work ;-)
--------
next question to verify:
Venue search card
QUrl uri = QUrl("foursquare://venues/search");
uri.addQueryItem("client_id", mFoursquareClientId);
uri.addQueryItem("client_secret", mFoursquareClientSecret);
QString token = mSettings->getValueFor(SETTINGS_KEY_FOURSQUARE_TOK EN, "");
if(!token.isEmpty()){
uri.addQueryItem("oauth_token", token);
}
uri.addQueryItem("query", "xxx");
cardRequest.setUri(uri);
mInvokeManager->invoke(cardRequest);
I have noticed it worked without the token using client id and client-secret.
Is it correct to send all 3 values if I got a Token or should I remove client id and client secret if a token is there ?
thx again