Skip to content

Commit

Permalink
Remove Faebook .
Browse files Browse the repository at this point in the history
  • Loading branch information
haithamsboui committed Jul 1, 2016
1 parent 4ca4544 commit ae5bf2f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 37 deletions.
17 changes: 0 additions & 17 deletions CRT.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRT", "CRT\CRT.csproj", "{7C713DAB-84BC-46A3-B9AB-42A37B901C6F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winsdkfb", "..\winsdkfb-master\winsdkfb\winsdkfb_uwp\winsdkfb_uwp\winsdkfb_uwp.vcxproj", "{973A943B-FF77-4267-8F30-F5FE2B7F5583}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\winsdkfb-master\winsdkfb\winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{973a943b-ff77-4267-8f30-f5fe2b7f5583}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -38,18 +33,6 @@ Global
{7C713DAB-84BC-46A3-B9AB-42A37B901C6F}.Release|x86.ActiveCfg = Release|x86
{7C713DAB-84BC-46A3-B9AB-42A37B901C6F}.Release|x86.Build.0 = Release|x86
{7C713DAB-84BC-46A3-B9AB-42A37B901C6F}.Release|x86.Deploy.0 = Release|x86
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|ARM.ActiveCfg = Debug|ARM
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|ARM.Build.0 = Debug|ARM
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|x64.ActiveCfg = Debug|x64
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|x64.Build.0 = Debug|x64
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|x86.ActiveCfg = Debug|Win32
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Debug|x86.Build.0 = Debug|Win32
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|ARM.ActiveCfg = Release|ARM
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|ARM.Build.0 = Release|ARM
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|x64.ActiveCfg = Release|x64
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|x64.Build.0 = Release|x64
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|x86.ActiveCfg = Release|Win32
{973A943B-FF77-4267-8F30-F5FE2B7F5583}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 0 additions & 6 deletions CRT/CRT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@
<Name>Microsoft Mobile Extension SDK for Universal App Platform</Name>
</SDKReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\winsdkfb-master\winsdkfb\winsdkfb_uwp\winsdkfb_uwp\winsdkfb_uwp.vcxproj">
<Project>{973a943b-ff77-4267-8f30-f5fe2b7f5583}</Project>
<Name>winsdkfb</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion CRT/Controls/WebserviceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using System.Threading.Tasks;
using CRT.Models;
using Windows.Security.Authentication.Web;
using Facebook;
using Windows.Storage;
using System.IO;
using System.Net.Http.Headers;
Expand Down
8 changes: 1 addition & 7 deletions CRT/Views/Login.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@
<PasswordBox x:Name="Password" Height="32" VerticalAlignment="Top" Margin="0,366,-330,-366" HorizontalAlignment="Right" Width="320" PlaceholderText="Password" BorderBrush="#FFD32F2F"/>
<Button x:Name="SignUp" Content="Sign up" HorizontalAlignment="Stretch" Height="30" VerticalAlignment="Top" Margin="163,450,-243,-446" Click="SignUp_Click" RenderTransformOrigin="0.5,0.821" FontSize="13.333" BorderBrush="#FFD32F2F" Background="#FFD32F2F" Foreground="White"/>
<Button x:Name="SignIn" Content="Log in" HorizontalAlignment="Stretch" Height="30" VerticalAlignment="Top" Margin="248,450,-328,-446" Click="button_Click" RenderTransformOrigin="0.5,0.821" FontSize="13.333" BorderBrush="#FFD32F2F" Background="#FFD32F2F" Foreground="White"/>
<fbsdk:FBLoginButton x:Name="LoginFb" Margin="3,0,-340,-610" Click="LoginFb_Click" Height="64" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="330" Visibility="Collapsed" >
<fbsdk:FBLoginButton.Background>
<ImageBrush ImageSource="ms-appx:///Assets/sign-in-facebook.png" Stretch="UniformToFill"/>
</fbsdk:FBLoginButton.Background>
</fbsdk:FBLoginButton>
<fbsdk:ProfilePictureControl x:Name="ProfilePic" Margin="10,387,-330,-610" Visibility="Collapsed"/>
<CheckBox x:Name="RememberMe" Content="Remember me" HorizontalAlignment="Right" Height="32" VerticalAlignment="Top" Margin="0,448,-153,-448" Checked="checkBox_Checked" BorderBrush="White" Foreground="White" Padding="10,5,10,0" d:LayoutOverrides="HorizontalAlignment" Background="#FFD32F2F" UseLayoutRounding="True" HorizontalContentAlignment="Center"/>
<CheckBox x:Name="RememberMe" Content="Remember me" HorizontalAlignment="Right" Height="32" VerticalAlignment="Top" Margin="0,448,-153,-448" Checked="checkBox_Checked" BorderBrush="White" Foreground="White" Padding="10,5,10,0" d:LayoutOverrides="HorizontalAlignment" Background="#FFD32F2F" UseLayoutRounding="True" HorizontalContentAlignment="Center"/>
<Rectangle Fill="#FFD32F2F" Margin="-35,-10,-370,-245"/>
<Image x:Name="image" HorizontalAlignment="Left" Margin="95,55,-245,0" Width="150" Source="ms-appx:///Assets/user-512.png" Stretch="Fill" NineGrid="0" Height="150"/>
</RelativePanel>
Expand Down
10 changes: 5 additions & 5 deletions CRT/Views/Login.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using winsdkfb;
using winsdkfb.Graph;

using CRT.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

Expand Down Expand Up @@ -91,7 +90,7 @@ private async void button_Click(object sender, RoutedEventArgs e)
}

private async void LoginFb_Click(object sender, RoutedEventArgs e)
{
{/*
FBSession sess1 = FBSession.ActiveSession;
sess1.FBAppId = "686873071454910";
sess1.WinAppId = WebAuthenticationBroker.GetCurrentApplicationCallbackUri().ToString();
Expand All @@ -108,8 +107,9 @@ private async void LoginFb_Click(object sender, RoutedEventArgs e)
permissionList.Add("user_photos");
permissionList.Add("publish_actions");
FBPermissions permissions = new FBPermissions(permissionList);

*/
// Login to Facebook
/*
FBResult result = await sess.LoginAsync(permissions);
if (result.Succeeded)
{
Expand All @@ -120,7 +120,7 @@ private async void LoginFb_Click(object sender, RoutedEventArgs e)
else
{
Debug.WriteLine("err " + result.ErrorInfo.Message+" "+ result.ErrorInfo.ErrorUserMessage);
}
}*/
}

private void checkBox_Checked(object sender, RoutedEventArgs e)
Expand Down
1 change: 0 additions & 1 deletion CRT/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"dependencies": {
"Facebook": "7.0.6",
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"SocketIoClientDotNet": "0.9.13",
"Template10": "1.1.8"
Expand Down

0 comments on commit ae5bf2f

Please sign in to comment.