[ SOLVED ] Facebook checkin/post w location problem

I ran into a problem with Facebook when trying to make a checkin (now called post with location). When reading the Facebook docs on their dev site I found it pretty straight forward but for some reason posting a message works but not when adding place, location or privacy even though I have the right permissions setup {“read_stream”}.

Anyone have a clue why it’s not working when adding these extra params needed for checkIn?

The problem seem to be how the Lua options table are formatted.

local optionsTbl =   
{  
  
 message = "Test CheckIn",  
 link = "http:/www.google.com",  
 privacy = {value = "SELF"},  
 place =   
 {  
 id = "10151216958172838",  
 name = "Google",  
 location =   
 {  
 latitude = 37.42199248817,   
 longitude = -122.08460260009  
 }  
 }  
}  

or here is it in JSON

{ "message":"Test CheckIn", "link":"http:/www.google.com", "privacy":{"value" : "SELF"}, "place":{ "id":"10151216958172838", "name":"Google", "location":{ "latitude":37.42199248817, "longitude":-122.08460260009 } } } [import]uid: 13560 topic_id: 32639 reply_id: 332639[/import]

This works perfect, note that you need to enable “read_stream” permission and also specify “type” as I did in the end of the table.

Solution:

[code]
local optionsTbl =
{

message = “Test CheckIn”,
link = “http:/www.google.com”,
name = “Google”,
caption = “A very big company”,
place =
{
id = “10151216958172838”,
name = “Google”,
location =
{
latitude = 37.42199248817,
longitude = -122.08460260009
}
},
type = “checkin”
}
[/code] [import]uid: 13560 topic_id: 32639 reply_id: 129799[/import]

This works perfect, note that you need to enable “read_stream” permission and also specify “type” as I did in the end of the table.

Solution:

[code]
local optionsTbl =
{

message = “Test CheckIn”,
link = “http:/www.google.com”,
name = “Google”,
caption = “A very big company”,
place =
{
id = “10151216958172838”,
name = “Google”,
location =
{
latitude = 37.42199248817,
longitude = -122.08460260009
}
},
type = “checkin”
}
[/code] [import]uid: 13560 topic_id: 32639 reply_id: 129799[/import]

Glad to see you got this resolved, thank you for updating with your solution and marking the thread as solved - most appreciated, I’m sure it will help others in the future.

Peach :slight_smile: [import]uid: 52491 topic_id: 32639 reply_id: 129952[/import]

@lano78 or @Peach: This is really another issue but I was wondering on how to edit the first post of any my posts? I can see the edit button on the second, third… but not on the first post on any of my messages in the forum. The reason I ask is that lano78 seems to have been able to edit his first post ({RESLOVED]) but not sure how he was able to do that?

I am asking because I need to edit one my past post and I can get the edit button. I do not know if it is a bug or only staff can do that?

I am very sorry @lano78 to high jack your thread. By the way thank you so much for updating with your solution. I am going to bookmark for future use!

Cheers.

Mo [import]uid: 100814 topic_id: 32639 reply_id: 129955[/import]

Glad to see you got this resolved, thank you for updating with your solution and marking the thread as solved - most appreciated, I’m sure it will help others in the future.

Peach :slight_smile: [import]uid: 52491 topic_id: 32639 reply_id: 129952[/import]

@lano78 or @Peach: This is really another issue but I was wondering on how to edit the first post of any my posts? I can see the edit button on the second, third… but not on the first post on any of my messages in the forum. The reason I ask is that lano78 seems to have been able to edit his first post ({RESLOVED]) but not sure how he was able to do that?

I am asking because I need to edit one my past post and I can get the edit button. I do not know if it is a bug or only staff can do that?

I am very sorry @lano78 to high jack your thread. By the way thank you so much for updating with your solution. I am going to bookmark for future use!

Cheers.

Mo [import]uid: 100814 topic_id: 32639 reply_id: 129955[/import]

You will find the “edit” for the main post at the bottom of the page :slight_smile:

Joakim [import]uid: 81188 topic_id: 32639 reply_id: 129974[/import]

I’ve noticed that type=“status” also seems to work. [import]uid: 13560 topic_id: 32639 reply_id: 129976[/import]

You will find the “edit” for the main post at the bottom of the page :slight_smile:

Joakim [import]uid: 81188 topic_id: 32639 reply_id: 129974[/import]

I’ve noticed that type=“status” also seems to work. [import]uid: 13560 topic_id: 32639 reply_id: 129976[/import]