I want to frame url to open a message threads in facebook from my app.
Logic to frame the url is taken from here!
Problem is with the thread_id value which i am getting from facebook graph api. Thread_id which i get is always an integer value (for example 311135682316044). So that resulting view url is:
https://www.facebook.com/messages/?action=read&tid=id.311135682316044
But this link gives the error “message not found”!
I noticed that the url which facebook uses for the same htread has the thread_id value as string(for example da4fe83e8be749c75cb08275e95da47138)
http://www.facebook.com/messages/?action=read&tid=da4fe83e8be749c75cb08275e95da47138
Any idea where the problem would be?
Thanks,
Anurag
In my opinion you currently can’t fix that, it’s a Facebook bug and it has been filed. If you know that it’s a 1-to-1 conversation, you can handle the misbehavior by redirecting to
/message/(user_id)instead of linking to the Thread URL. This is working for me.To detect whether it’s 1:1, query (FQL) the
recipientsarray ofthreadand determine its size.So with this work-around, you can’t completely handle the bug, but you can reduce its impact!