Ребята я делаю Windows Phone facebook
интеграции.Windows Phone Facebook Интеграция
В этом изображении я показал два изображения. здесь я получаю логин, похожий на первое изображение. Я хочу, чтобы мой вход в facebook выглядел как второе изображение.
private void Button_Click(object sender, RoutedEventArgs e)
{
//Client Parameters
var parameters = new Dictionary<string, object>();
parameters["client_id"] = FBApi;
parameters["redirect_uri"] = "https://www.facebook.com/connect/login_success.html";
parameters["response_type"] = "token";
parameters["display"] = "touch";
//The scope is what give us the access to the users data, in this case
//we just want to publish on his wall
parameters["scope"] = "publish_stream";
Browser.Visibility = System.Windows.Visibility.Visible;
Browser.Navigate(client.GetLoginUrl(parameters));
//Browser.Source = new Uri("htpp://m.facebook.com/mobile");
//Browser.Navigate(new Uri("url name", UriKind.Absolute));
}
// Browser navigating and accessing the facebook Token==========================================================>
private void BrowserNavitaged(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
FacebookOAuthResult oauthResult;
//Making sure that the url actually has the access token
if (!client.TryParseOAuthCallbackUrl(e.Uri, out oauthResult))
{
return;
}
//Checking that the user successfully accepted our app, otherwise just show the error
if (oauthResult.IsSuccess)
{
//Process result
client.AccessToken = oauthResult.AccessToken;
//Hide the browser
//Browser.Visibility = System.Windows.Visibility.Collapsed;
//PostToWall(); // Post wall to Facebook.
CameraStarting(); // start the Camera.
}
else
{
//Process Error
MessageBox.Show(oauthResult.ErrorDescription);
Browser.Visibility = System.Windows.Visibility.Collapsed;
}
}
@Phil и можете ли вы заглянуть в него? –
@Apoorva вы можете заглянуть в нее –