Logout() public method

ログアウトする.
public Logout ( ) : void
return void
Beispiel #1
0
        internal void ShowLoggedIn()
        {
            dvc.Root = new RootElement("Logged In")
            {
                new Section("Options")
                {
                    new RootElement("Login and Permissions")
                    {
                        new Section("Logging the user out", "You should include a button in your app to log the user out")
                        {
                            new StringElement("Logout", delegate { facebook.Logout(); })
                        },
                        new Section("Uninstalling the App", "You can create a button so the user can uninstall the app from Facebook")
                        {
                            new StringElement("Uninstall app", UninstallFromFacebook)
                        },
                        new Section("Asking for extended permissions", "If your app needs more than this basic information to function, you must request specific permissions from the user. For example, you might prompt the user to access their Likes in order to recommend related content for them automatically")
                        {
                            new StringElement("Grant the 'user_likes' permission", GrantUserLikes)
                        }
                    },
                    new RootElement("Requests")
                    {
                        new Section("Request", "If you show the request dialog with no friend suggestions, it will automatically show friends that are using your app, as well as friends that have already used your app.")
                        {
                            new StringElement("Send Request", RequestsToMany),
                        },
#if false
                        new Section("Invite friend not using app")
                        {
                        },
                        new Section("Request to App Friends")
                        {
                        },
                        new Section("Request to targeted friend")
                        {
                        }
#endif
                    },
                    new RootElement("News feed")
                    {
                        new Section("Publish to the User's Wall")
                        {
                            new StringElement("Publish to your wall", PostUserWall)
                        },
#if false
                        new Section("Publish to friend's Wall")
                        {
                        }
#endif
                    },
                    new RootElement("Graph API")
                }
            };
        }
Beispiel #2
0
        static void FBSharepost()
        {
            var fb = new Facebook();

            fb.Login();

            var groups = new List <string>()
            {
                "ථේරවාදී ඇසින් අටුවාව",
                "Path Nirvana Discussion",
                "කල්‍යාණ දහම් මණ්ඩපය",
                "පිංඅනුමෝදනා! පත්තානුමෝදනා!Offering Merits!",
                "බුදුන් වැඩි මග",
                "අමා දහර. amaa dhahara",
                "නිර්මල බුදු දහම..nirmala bududhama",
                "ඇදිරිනීතිය ඵලදායිව ගතගතකරන්නන්ගේ සංසදය",
                "තථාගත ධර්මය ( Thathagatha Dharmaya)",
                "ධර්ම සංඝායනා බෝසත් අඩවිය",
                "ඒහි පස්සිකෝ - Ehi Passiko",
                "෴පන්සිය පනස් ජාතක කථා වස්තුව෴Pansiya Panas Jathaka",
                "යොවුන් දහම් සක්මන | Yowun Daham Sakmana",
                "විශ්ව ආකර්ශන නීතියෙන් වැඩ ගන්නා අය",
                "Sri Dalada Maligawa",
                "දර්ම දානය",
                "සදහම් සුවය",
                "මේ සතර සතිපට්ඨානයට යොමු විය යුතුම කාලයයිTheMin",
                "දහමින් සුවය",
                "මධ්‍යම පළාත් අපි-(We are in Central Province)",
                "සසර",
                "Pansil Maluwa * *පන්සිල් මළුව**",
                "Friends Who Like daham Sithuwili- දහම් සිතුවිලි",
                "Facebook ගැන්සිය"
            };

            fb.SharePost("https://www.facebook.com/pg/SasunKethaAswaddamu/photos/?tab=album&album_id=2642734569315312", groups);

            fb.Logout();
        }
Beispiel #3
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     facebook.Logout();
 }
 void Logout()
 {
     _facebook.Logout(_sessionDelegate);
 }
Beispiel #5
0
 private void btnLogout_Click(object sender, RoutedEventArgs e)
 {
     facebook.Logout();
 }
 public void Disconnect()
 {
     ClearAuthorization();
     facebookClient.Logout();
 }