How to convert facebook in table settings

Hello

I looked for answers for days now and it seems that there is little support in regards to facebook api in flash. I would just ask for help regarding managing facebook params when loaded to Flash.

I use amfphp and flash professional. I managed to get the params help

var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;

This property returns 5 params:

  • session
  • height
  • fb_fbjs_connection
  • fb_local_connection
  • Width

What I am interested in getting the values of session. My question is how to convert those session values in a table or how can I get the uid and the session_key?

This is the exact return to a string:

{"uid":"1448570087",
"session_key":"2.LpHrIZ9IOujNzZBVf7W_Wg__.3600.1290628800-1448570087",
"secret":"vZnL1HJsaI4QpNtqdNaYNQ__",
"expires":1290628800,
"access_token":"1130039|2.LpHrIZ9IZBVf7W_Wg__.30.1290628800-1448570087|B_Am374cQL-0LH4RpgRYq9Y",
"sig":"6452254773f997495ca1b21ef3a407ef"}

Any help would be appreciated.

See you soon!

Here is a quick and dirty JSON parser. She can't cover all cases, but it works with your case. It analyzes the thing you get from Facebook in an object.

var jsonString:String = '{"uid":"1448570087","session_key":"2.LpHrIZ9IOujNzZBVf7W_Wg__.3600.1290628800-1448570087","secret":"vZnL1HJsaI4QpNtqdNaYNQ__","expires":1290628800,"access_token":"1130039|2.LpHrIZ9IZBVf7W_Wg__.30.1290628800-1448570087|B_Am374cQL-0LH4RpgRYq9Y","sig":"6452254773f997495ca1b21ef3a407ef"}';

var pairs:Array = jsonString.match(/"\w+":"[\w\.\|-]+"/g);
// create object
var jsonObject:Object = { };

for each(var pair:String in pairs) {
     pair = pair.replace(/"/g, "");;
     trace("pairs split left =", pair.match(/.*(?=:)/), "right =", pair.match(/(?<=:).*/));
     // create property from left part and assign value from the right
     jsonObject[pair.match(/.*(?=:)/)] = pair.match(/(?<=:).*/);
}
// check the object
for (var prop:String in jsonObject) {
     trace("from object", prop, "=", jsonObject[prop]);
}

Tracing output is:

pairs split left = uid right = 1448570087
pairs split left = session_key right = 2.LpHrIZ9IOujNzZBVf7W_Wg__.3600.1290628800-1448570087
pairs split left = secret right = vZnL1HJsaI4QpNtqdNaYNQ__
pairs split left = access_token right = 1130039|2.LpHrIZ9IZBVf7W_Wg__.30.1290628800-1448570087|B_Am374cQL-0LH4RpgRYq9Y
pairs split left = sig right = 6452254773f997495ca1b21ef3a407ef
from object uid = 1448570087
from object session_key = 2.LpHrIZ9IOujNzZBVf7W_Wg__.3600.1290628800-1448570087
from object sig = 6452254773f997495ca1b21ef3a407ef
from object secret = vZnL1HJsaI4QpNtqdNaYNQ__
from object access_token = 1130039|2.LpHrIZ9IZBVf7W_Wg__.30.1290628800-1448570087|B_Am374cQL-0LH4RpgRYq9Y

Tags: Adobe Animate

Similar Questions

  • How to convert XML in table

    I have a simple xml file I want to convert to a table of front to bind the value of dataProvider?

    How to do this?

    Thanks for your help

    The reason is that I need to place a filter on this datagrid.

    I found a way with a httpService calling a php scripts and: var source: collection ArrayCollection = sessionConn.lastResult.rows.row as ArrayCollection collection;

    SEB

  • How to convert Brown waveform table Orange table

    Hey,.

    I'm trying my table in a box formla so I want the individual values in this table, but I never came across the Brown son of waveform

    I have attached a file paint below, I hope that aid to explain what I mean

    I want to go find the frequency & phase of my wave is it able to use thoes values in a calculation

    Thanks, I hope this makes sense.

    Resolved, regret that turns brown dotted line is a cluster not a waveform.

  • Convert the Boolean table 1 d in Boolean

    How to convert the Boolean table 1 d to Boolean? Actually, I take a digital input of sensor using data acquisition (NI USB 6009) and I give this digital input to a structure of case to change a condition, but the source type is table 1 d & sink is boolean(TRUE/FALSE).i have attached vi of the above condition, i only replaced Boolean table rather than real acquisition of input data.

    Thanks for your suggestion, I couldn't open your vi cuz I use the 2009 version of labview, but I found the solution to this problem, we can use the table to index. I have attached the vi.

  • How to convert a string of data to a table 1 d

    Dear all,

    I wonder if someone can help me.

    In the attached Elf, I have my program (in labview 8.6) who read the updates and the data of temperature for the time.

    I want to use temperature update in a calculation.  How can I get the new temperature I think it's in a format string and convert it into table 1 d?

    I tried, but the number I got the temperature wasn't the same temperature, which is shonw in the section of the program data.

    Could someone help me please?

    Kind regards

    You do not read the temperature, you read a binary file. You seem to be assuming that the string format, but do you really know? Nobody here can say since you do not have the file, if it is you need to use one of the functions of conversion of the string. And please, get rid of the local data variable. You're already usin shift registers. Do the same with the data from the file.

  • How to convert the string with numbers in the table of Boolean 2D

    Hello

    I have input a string with comma separated numbers 1,192 (starting at 1).

    This string must be converted to a table 2D-boolean. Each number that appears should be true, not true rest.

    The 2D table consists of 4 times of 0.47 Boolean values.

    1.48--> [0.47] numbers [0]
    49.96--> [0.47] numbers [1]
    Numbers 97.144--> [0.47] [2]
    145.192--> [0.47] numbers [3]

    If a '1, 49, 97 145' input string put all [0] [0.3] true.

    How can it be easy/fast resolved?

    Thanks for help

    Break the string of numbers in a table of numbers.  (Spreasheet String to Array).

    In a loop For, index with each issue of this table.  Use in the range and Coerce to see if it is in the range of numbers.  (You can put this in a loop For as auto good indexing through the ranges).  If it's in the range, then use subset replace table to activate the corresponding item in a real.  If this is not the case, do nothing.  Maintain the table of Boolean in a shift register.

    Repeat this step for each number in your table.

    (What is a class assignment?)

  • How to convert a table just to trace the Smith abacus?

    Hi Sir,

    How the read data of R and l of csv file X on the Smith abacus? I have attached the file csv and Smith abacus. Could you please kindly teach me how to convert the CSV in table at right to draw it.

    Best regards

    Victor

    Hi blueface,.

    Did you look at the example LabVIEW?

    Concerning

  • How to convert table 1 d scalar

    I use PMD-1208LS to get 2 entries through 2 different channels, using AInScFg.vi

    How ever, the values in table 1 d [of the digital (only 32-bit real)].

    After you have applied several equations on the Board he still table 1 d but [Digital (real 64-bit double)], now I want to send to the output channel using Eng.vi--> Aout.vi.

    The problem is, that may come on if my data is in the scalar data type [sink data are unsigned word (16-bit)] no table type?

    So, how can I convert table 1 d scalar (Word)?

    Thank you

    You can do it the way I suggested or Gaurav method. You like.

  • How to convert a table 1 d of cluster of 5 items in a table of numbers 2D? (a graph historical data)

    Hello

    in my vi, I have an array with 5 slots displaying measurement data.

    The user must be able to record all the data in the history of the card at any time. (for example the user looks at the picture and something happens, then it based on a 'save' - button)

    I know that I can read the data in the history with a property node. This isn't the problem. The problem is, how to deal with the data? The type of history data is a table 1 d of cluster of 5 elements.

    I convert these data somehow in a 2 D-table of numbers or strings, so that I can easily save it to a text file.

    How to convert a table 1 d of cluster of 5 items in a table of numbers 2D?

    I use LabVIEW 7.1

    Johannes

    Hallo Johannes,

    the photo shows the trivial way:

  • How to convert * all * tables of text in a document?

    Version: Indesign CS 5.5

    I have a massive document that was given to me after be imported into Word, and the person who has imported, it did not convert tables to text (or they tried and it did not work, be it, I have a huge amount of tables that must be not filed).

    I am responsible for the document formatting, and the formatting requirements are to convert all tables in the text document. I was able to batch-process other formatted in the document with the help of find + replace, but I can't seem to find a way to search for all instances of a table in the document and convert all the table set in shape to the text. I can find every table in the search/replace tool using < 0016 >, but I have no idea how, and then delete the table set shaped with the change function.

    I have no text special requirements (standard; tabs for columns and new paragraphs for the lines) and all tables should be converted, regardless of their formatting or content, so it's fairly simple formatting.

    There must be SOME way tot automate this process, it seems incredibly Loïc having to select each table individually and go up to the menu to select "convert table to text... '. ». Any idea is appreciated.

    Click on the text cursor in your text running, and then run this Javascript. WARNING: fully typed memory!

    App.Selection [0].parentStory.tables.everyItem () .convertToText ();

  • How can I convert an existing table to the ITO

    Hello

    My Oracle version is 10.2.0.4

    Here's my my test_table structure.

    He has 1141580 rows.

    I want to convert to table index. However, there is no secondary indexes.
    How can I convert an existing table to the ITO.

    CREATE TABLE test_table (
       Column1             NUMBER        NOT NULL,
       Column2             DATE          NOT NULL,
       Column3             VARCHAR2(100) NOT NULL,
       Column4             VARCHAR2(8)   NULL,
       Column5             VARCHAR2(40)  NOT NULL,
       Column6             VARCHAR2(3)   NULL,
       Column7             NUMBER        NOT NULL,
       Column8             NUMBER        NULL,
       Column9             VARCHAR2(32)  NULL,
    )
    
    /
    
    
    
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_pk2 PRIMARY KEY (
        Column1,
        Column2
      )
      USING INDEX
        STORAGE (
          INITIAL   30720 K
        )
    
    /
    
    
    ALTER TABLE test_table
      ADD CONSTRAINT test_table_cons1 FOREIGN KEY (
        Column1
      ) REFERENCES test_table2 (
        Column1
      )
    /

    Documentation Oracle say:
    Redefinition of Table online allows you to change the organization from a normal table (heap-organized) to an organized in index table and vice versa.

    For example, you might want to try.

  • How to convert a text file and give the table

    Hai

    How to convert a text file and give the data of the table

    ISN'T THERE!

    You must put this

    SET_BLOCK_PROPERTY ('TEST_MS', insert_allowed, property_false);
    SET_BLOCK_PROPERTY ('TEST_MS', update_allowed, property_false);

    just before the last exception...

    Published by: Dora on January 19, 2010 14:54

  • How to convert table 1 d of the only single

    Hye, I am brand new in Labview. Can someone help me how to convert arrray 1 d of the only sin

    GLE.

    Use Index

  • How to convert WAV, Alac

    How to convert WAV to ALAC files.

    1. Select Apple Lossless as your chosen import format using edit > Preferences > import settings.
    2. Choose files to convert.
    3. Use file > convert > create the Version Apple Lossless.

    TT2

  • How to convert U32 matrix 8-bit grayscale image?

    Good day to all,

    I got a U32 512 * 512 data table of photomultiplier using the analog inputs of the DAQ card. My question is how to convert this matrix 32-bit to 8-bit monochrome image for display.

    I tried the method in this post to convert grayscale image https://decibel.ni.com/content/docs/DOC-4155 table but the result resembles an outline rather than the actual image. I guess that's because their contribution to flatten Pixmap is 8 bits, but mine is 32-bit. I have a gamma correction to the scale of my data? But how?

    I have attached the original image, which is a particle. I have also attached my labview code and the processed image.  Thank you!

    Then, you will likely make you own custom conversion then increasing the difference between the brightest and darkest. You could just do 4294963840 the zero and 4293967276 the max and scale up to 0-255

Maybe you are looking for