Set text of TextBox coming from Facebook API

I developing an app in which I need to set some data of user from facebook. So using WebAuthentication broker I get the user to login and then fetch the information and set it to the textbox values. The information is fetched properly but the values are
not set in Textbox. I can't figure out the reason. Can somebody help? This is my function for setting the data.
async public void SignUpUsingFacebook(string response)
            if (Utility.isInternetAvailable())
                try { MainPage.StartAnimation();
                MainPage.loaderGrid.Visibility = Visibility.Visible;
                catch
                    setAnimation();
                    StartAnimation();
                    loaderGrid.Visibility = Visibility.Visible;
                string token = response.Substring(response.IndexOf('=') + 1);
                string fbGetInfo = "https://graph.facebook.com/me?access_token=" + token;
                HttpResponseMessage msg = await new HttpClient().GetAsync(new Uri(fbGetInfo), HttpCompletionOption.ResponseContentRead);
                if (msg.IsSuccessStatusCode)
                    try
                        string fbData = await msg.Content.ReadAsStringAsync();
                        JObject j = JObject.Parse(fbData);
                        string fbId = j["id"].ToString();
                        txt_user_Name.Text = fbId;
                        txt_user_Name.Visibility = Visibility.Collapsed;
                        txt_first_Name.Text = j["first_name"].ToString();
                        txt_last_Name.Text = j["last_name"].ToString();
                        txt_email_Address.Text = j["email"].ToString();
                        txt_retype_email_Address.Text = j["email"].ToString();
                        gender = j["gender"].ToString();
                        if (gender.Equals("male", StringComparison.OrdinalIgnoreCase) || gender.Equals("boy", StringComparison.OrdinalIgnoreCase))
                            boy.Visibility = Visibility.Collapsed;
                            boySelected.Visibility = Visibility.Visible;
                            girlSelected.Visibility = Visibility.Collapsed;
                            girl.Visibility = Visibility.Visible;
                        else if (gender.Equals("female", StringComparison.OrdinalIgnoreCase) || gender.Equals("girl", StringComparison.OrdinalIgnoreCase))
                            girlSelected.Visibility = Visibility.Visible;
                            boySelected.Visibility = Visibility.Collapsed;
                            girl.Visibility = Visibility.Collapsed;
                            boy.Visibility = Visibility.Visible;
                    catch { }
                    try { MainPage.loaderGrid.Visibility = Visibility.Collapsed;
                    MainPage.StopAnimation();
                    catch
                        loaderGrid.Visibility = Visibility.Collapsed;
                        StopAnimation();
                else
                    Utility.notifyUser("Your information from facebook could not be fetched", "");
            else
                Utility.showMessage(Utility.msgType.InternetError);

The WebAuthenticationBroker has nothing to do with the issue of your textboxes not showing the values they were set to show.
You are basically just setting string values to textboxes on your page. This shouldn't fail unless you are doing something else that is invalidating the values. Are you setting the values on a different page and viewing the changes on another?
Abdulwahab Suleiman

Similar Messages

  • [iPhone 2.x] How to set text of a label from another classfile?

    I've a iPhone application (tabbar application) with some UIViewControllers. Per UIViewController i've created another .xib file.
    In one of the .xib files, i've created an UIView with an UILabel and created an outlet called "lblStatus" and connected it to the UILabel. I did all with Interface Builder.
    When i execute the application everything works great.
    Now i want to change the text of UILabel (lblStatus) from another class other then the class i've defined the outlet.
    MainWindow.xib
    - UITabBarController
    - UITabBar
    - UIViewController (viewController)
    - UIViewController (redirect to photosView.xib)
    photosView.xib
    - UIView (photosView)
    - UILabel (lblStatus)
    As you can see i've the classfile viewController (.h/.m). In that file i've the method called "viewDidLoad". I'm trying to set the text of lblStatus (defined in the classfile photosView (.h/.h) from this method.
    I've tried a lot but nothing works till now, how can i fix this?
    Thanks

    I believe the best way would be to setup a weak reference to the object.
    Check out "Object Ownership and Disposal" in "Memory Management Programming Guide for Cocoa":
    http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt. pdf

  • Why are texts showing up coming from email account

    When I text from my phone it shows it as coming from my mail. This began happening when I changed texts being shown on iPad.  Can someone help me untangle this mess.

    Found it, it's under Viewing preferences, "Show Header Detail. I put it at Default instead of All

  • When i text it is coming from my email address

    when i text, the text is comeing form my email... how do i get it to go back to my phone #?

    Settings > Messages > Receive At > Apple ID.
    Select your Apple ID and at the menu window that appears, select Sign Out.
    Follow this by signing back in with your Apple ID at the same location.

  • How to set text size when printi from a web page

    can't increase text size when printing a web page

    If you're using IE, click on View, Text Size and then whatever size you'd like.  You'll see the changes on the screen and it should print out the same way.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • Tracking App Installs from Facebook

    I'm doing a major ad campaign on Facebook for App Installs and I'd like to track how well my ad does - and which people who are coming from Facebook are actually doing in-app purchases. How can I track who is coming over from my ad and buying?

    You need an enterprise DPS account + enterprise Apple account to do it.
    Message was edited by: abuewaida

  • How can I make rectangular speech bubbles that adapt to the text inside them without the "arrow" that points towards where the bubble is coming from getting changed?

    I have to make lots of speech bubbles (150+) that all have texts inside them which differ in length. I want the speech bubbles to look the same in terms of style, but I need different sizes of course for each text. This means that the rectangular part of the speech bubble should adapt in length and width to the text inside it, while the "arrow" pointing towards where the bubble is coming from (e.g. the person who speaks) should stay the same on every bubble. So is there a way or a workaround to make such "adapting" speech bubbles?
    I appreciate any kinds of help
    Thanks in advance!

    Here's another way I found:
    1. Draw a speech bubble. Mine is a rectangle with rounded corners and a triangular pointer added with Pathfinder > Add
    2. Drag out a frame the same size as the speech bubble. Select the speech bubble and Copy; then select the empty frame and choose Edit > Paste Into...
    3. Alt-Drag the frame with the pasted speech bubble to make a copy, then crop one copy to leave only the top of the bubble showing, and crop the other copy to leave only the bottom.
    4. Drag out a text frame and insert a table consisting of 1 column, 3 rows. Set the text frame to Autosize > Height Only.
    5. Set the stroke/fill of the top and bottom rows to none, and style the middle row to match the speech bubble, (in my case a white fill and 2pt stroke; left and right).
    6. Anchor (paste) a copy of the speech bubble top in the top table row, and a copy of the speech bubble bottom in the bottom row.
    Getting the 3 parts to match up with is where you just have to work on it until you get it right. Use the positioning tools in Anchored Object options and the column width setting in Cell options to line everything up.
    Enter your text in the middle row. (Hey, look at that...a valid application of Comic Sans!) With the Cell Height set to an "At Least" setting, the cell will expand to fit whatever text you enter, pushing the the bottom row down, with the text frame auto-sizing to keep everything in play...

  • How to change the Text of Dropdown by Key Dynamically thats coming from RFC

    HI All,
    I need an urgent help . I have a parameter coming from RFC -> YYTEXT with a value Range and I am binding this parameter in my DROPDOWN BY KEY .Now I have a requirement that two values coming from this parameter i need to change it
    .Can you please tell me how to get the values from this YYTEXT attribute which is in NODE1 and then set the two new texts to this attribute so that it shows different text in the droodown .
    Thank you in Advance .
    Naaz

    Will appreciate any comments on the question ?

  • I just hooked up facebook chat to imessage, and while Jabber says I am logged in, nothing from facebook is coming up. I use mountain lion 10.8.5 on a macbook pro.

    I just added my Facebook chat account to iMessage. When I am logged in to iMessage, it looks like I am also logged in with Jabber, but nothing from Facebook is coming up (I use Mountain Lion 10.8.5 on a 2011 macbook pro)
    I have already:
    unchecked "use kerberos fv5 for authentification" and "use SSL"
    checked "automatically find server and port"
    restarted both the application itself, and then my whole computer.
    Any help would be appreciated

    Hi,
    Although I don't have a Facebook I d have 3 other Jabber accounts logged in.
    One is from Google and the others are from other Jabber servers.
    My Google settings look like this,
    Most Jabber server need SSL and the App will automatically make this port 5223.
    However Google will let you change theirs to use port 443.
    One of the other 2 is using "Automatically find Port and Server" and is using port 5222 and No SSL.
    Whilst most will use SSL and port 5223 it is not true for every Jabber server.
    I can never remember if the Facebook chat ID is @facebook.chat.com or @chat.facebook.com (I suspect the second)
    You are using the Chat ID and not your regular Facebook ID ?
    I can't follow the iChat link on this page as I can't log in
    https://en-gb.facebook.com/sitetour/chat.php
    I would check the set up page  but if that does not work I would work through all the settings possibles with the SSL, Ports, warn on insecure passwords etc.
    8:00 pm      Tuesday; July 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I recently had to erase my Iphone 5s. Now, when I send texts, it shows them coming from my email address.  I'd rather it just showed them coming from my phone

    I recently had to erase my IPhone 5S, and now it's been restored, and when I text, it shows my messages coming from my email address rather than from my phone # or my name, like they used to be shown.   How can I change this setting back to the way it was?   Thanks

    SpartanDog wrote:
    It doesn't offer me "start new conversations from".
    I presume you can see "You can be reached at ...", so do you only see your email there? (i.e. no phone number?)  If so, then the "send from" may not be an option since your iPhone only has one point of contact, your email.
    If you don't see your phone number under "You can be reached at ..." then sign out of iMessage and FaceTime, then send a text message to any non-iOS friend you know, then sign back into iMessage and FaceTime.  That may re-establish your phone number with Apple's servers.

  • On iphone 4 how do i block text messages that are coming from an email account?

    on iphone 4 how do i block text messages that are coming from an email account?

    There is no way to block text messages.  You may wish to report them to your carrier

  • How to store the data coming from network analyser into a text or excel file

    Hii everyone
    I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
    Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
    Attached is the vi for kind consideration...
    Looking for help
    Regards
    Rohit
    Attachments:
    Agilent 87XX Series Exceed Max Meas.vi ‏43 KB

    First let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
    The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
    The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • When I send a text message it shows up as coming from my email address not my phone, can i change this

    when I send a text message it shows up as coming from my email address not my phone, can i change this

    another way to change it is :
    go to settings -> phone -> my number (iput your phone number)
    and then do what razmee209 said,
    after you change it, your phone number will authenticate with the operator that you use,
    I hope this could help you,

  • Downloaded IOS7 on iPhone 4, have sprint as carrier, now when another Sprint phone sends a text to my sons iPhone, Im getting a copy of the texts being sent to him.  Plus when I send a text, it shows as coming from my sons.  What's up, how can I fix this?

    I have downloaded ios7 on iphone 4s, Sprint is my carrier.  When I send a text to anohter iphone ALSO using sprint, it shows as coming from my sons phone.  When he gets a message from another iphone using sprint, I get copies of his messages.  Go figure.  It seems to be only other IPhones and Sprint users.  Hasnt' happend with android phones texting him, or him texting to androids or carriers that are not sprint.

    The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.

  • HT3529 my iphone just stop connecting to my wifi and i have tried all the recommended troubleshooting with no success. Also when i send a text , it shows it coming from my email address instead of my cell #. i cant get a text going to my cell #. help

    my iphone just stopped connecting to my wifi and i have tried all the recommended troubleshooting with no success. Also when i send a text , it shows it coming from my email address instead of my cell #.  i dont receive any text going to my cell #. help

    If i understand what you are saying then you are seeing the WiFi indicator after connecting but Apps are saying that they are not connected to the internet?
    Your router may not have given your iPod a valid IP address. Go to Settings > Wifi > your network name and touch the ">" to the right to see the network details. If the IP address starts with 169 or is blank then your router didn't provide an IP address and you won't be able to access the Internet.
    Sometimes the fix can be to restart your router (remove power for 30 seconds and restart). Next, reset network settings on your iPod (Settings > General > Reset > Reset network settings) and then attempt to connect. In other cases it might be necessary to update the router's firmware with the latest from the manufacturer's support web pages.
    If you need more help please give more details on your network, i.e., your router make, model and version, the wifi security being used (WEP, WPA, WPA2), etc.

Maybe you are looking for

  • When is the next firmware released after v21.0.016...

    When is the next FW upgrade after V21.0.016 which hav known bugs reported . I hope nokia to rectify it in next FW near soon.....My N95-1 getting slower & slower in response...when boot up it takes 15 minutes, some phone pre-installed function like No

  • Will an 11-inch MacBook Air work with Snow Leopard?

    Will an 11-inch MacBook Air work with Snow Leopard? If yes, can you downgrade from Yosemite to Snow Leopard?

  • REP-51018 + REP-50004 Errors (Urgent)

    Hello, I am working under Oracle 9i iDS on Windows XP Pro. When I invoke my WebReports from WebForms, I see my Parameter Form that Pops-Up in a new Browser window. When I hit, the "Submit Query" button, I am prompted to enter the username/password/da

  • How to pass KDC server address and REALM in Krb5LoginModule ??

    Hi All, I want to pass KDC server address and REALM in Krb5LoginModule() with using configuration file or command line options. I tried with initialize method of Krb5LoginModule() with passing KDC configuration parameters in sharedState. Map state =

  • Installa Oracle Database 10g in a Tests Server

    Good Morning I need help about as to Install Oracle10g Database, in a test server.I need Create a Database and later to Restore the last day Backup, in this Database. Please somebody help me Regards Kevin Koch