[android] Temporary added test facebook credentials

This commit is contained in:
Александр Зацепин 2017-09-29 19:00:39 +03:00 committed by Roman Kuznetsov
parent 03686edde3
commit 9a72ce8d75
2 changed files with 8 additions and 3 deletions

View file

@ -3,8 +3,12 @@
<string name="shared_user_label" translatable="false">Maps With Me</string>
<!-- FB -->
<string name="facebook_app_id" translatable="false">185237551520383</string>
<string name="fb_login_protocol_scheme">fb185237551520383</string>
<!-- TODO: uncomment it before release! -->
<!-- <string name="facebook_app_id" translatable="false">185237551520383</string>
<string name="fb_login_protocol_scheme">fb185237551520383</string>-->
<string name="facebook_app_id" translatable="false">685770561587515</string>
<string name="fb_login_protocol_scheme">fb685770561587515</string>
<!-- App names -->
<string name="facebook" translatable="false">Facebook</string>

View file

@ -20,6 +20,7 @@ namespace
{
std::string const kMapsMeTokenKey = "MapsMeToken";
std::string const kServerUrl = PASSPORT_URL;
std::string const kAppName = PASSPORT_APP_NAME;
std::string AuthenticationUrl(std::string const & socialToken,
User::SocialTokenType socialTokenType)
@ -43,7 +44,7 @@ std::string AuthenticationUrl(std::string const & socialToken,
std::ostringstream ss;
ss << kServerUrl << "/register-by-token/" << socialTokenStr
<< "/?access_token=" << UrlEncode(socialToken);
<< "/?access_token=" << UrlEncode(socialToken) << "&app=" << kAppName;
return ss.str();
}