Hey Naomi…
first of all thank you soo much … your a reall sweetheart,
the thing is how can you see a print command on the iphone ?
becouse on the corona simulator the facebook doesn’t work… and in the corona terminal is the only way i know of reading a print line…
when i try the code from your link for myself it says an ERROR on the lne
local tableView = require(“tableView”)
but even when i kinda… fix it…look
HERE is MY code…
(everytime i try to print the TESTIT it just doesn’t write anything…)
so … i mean …
pls ? can you give me a ready code that publishes a facebook picture ? please ?
local facebook = require “facebook”
local json = require “json”
local tableView = require(“tableView”)
– listener for “fbconnect” events
local function listener( event )
if ( “session” == event.type ) then
– upon successful login, request list of friends
if ( “login” == event.phase ) then
facebook.request( “me/friends” )
end
elseif ( “request” == event.type ) then
– event.response is a JSON object from the FB server
local response = event.response
print ( response )
– if request succeeds, create a scrolling list of friend names
if ( not event.isError ) then
response = json.decode( event.response )
TESTIT = display.newText (response, 150, 200, nil, 30)
local friends = {}
local data = response.data
for i=1,#data do
local name = data[i].name
table.insert( friends, name )
end
local topBoundary = display.screenOriginY + 40
local bottomBoundary = display.screenOriginY + 0
– create the list of items
myList = tableView.newList{
data=friends,
default=“listItemBg.png”, over=“listItemBg_over.png”,
top=topBoundary, bottom=bottomBoundary,
}
end
elseif ( “dialog” == event.type ) then
print( “dialog”, event.response )
end
end
– first argument is the app id that you get from Facebook
facebook.login( “314542735310401”, listener )
thank you sooo much for helping me on this…it is realllly important to me . and i’m kinda stuck on that…
[import]uid: 174056 topic_id: 32422 reply_id: 129204[/import]