DiscipleTools / disciple-tools-facebook

Adds integration to Facebook pages and creates contacts from Direct Message conversations. This is a key plugin for outreach through Facebook.
https://disciple.tools/plugins/facebook/
Other
4 stars 1 forks source link

Conversation Links not working #31

Open rdai opened 3 years ago

rdai commented 3 years ago

The conversation links don't seem to be working for me.

It seems selected_item_id is not correct in the URL so it always gets routed to the latest message. It is within "Facebook Business Suite" so I don't know if that matters.

If I take a selcted_item_id from a conversation from the browser URL while I am in Facebook Business Suite, then put it back in the shorthand format the plugin is using: https://facebook.com/608494942XXXXXX/inbox/1000676024XXXXX/

then it works, so I think the plugin just grabbed the wrong id when building "Conversation Links" (not sure if the right id is available).

Thanks Ray

corsacca commented 3 years ago

Hey @rdai I'm seeing the same thing you are. When clicking the link we are redirected to the business inbox, but not to the intended conversation. Unfortunately the link is provided by facebook's api. That it no longer works must be because of something facebook implemented recently. We have available the page_scoped_id. Maybe there is a way to get the business id and build the correct url.

rdai commented 3 years ago

Thanks @corsacca for the response and for the other issue as well. Yes that makes sense, I see that you are just getting the link from FB. They must changed it. I don't think there is a need to get the business id or at least that is not the problem, the original shorthand way still works, just the id is wrong. I have been trying to get the graph tester to work to see what if any of the returned results is the correct id but I am new to this so I wouldn't count on myself to figure it out. I will report back if I do. For now it is just a FYI. Thanks.

rdai commented 2 years ago

Found this from Facebook: https://developers.facebook.com/support/bugs/3538611839697303/?join_id=f301c439914a224

Looks like a known bug with no fix in sight.

rdai commented 2 years ago

I resubmitted this bug to FB: https://developers.facebook.com/support/bugs/4723597807686979/

corsacca commented 2 years ago

Great. Thanks @rdai !