Git Product home page Git Product logo

Comments (9)

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

+1
please add account linking feature in this demo
such as Auth0.com code flow and add in the app in the beginning ideally so the messenger will recognize the user from the day one

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

Problem:

In my case what happening is, it is always saying Account Linking Failed

image

What I am doing

when I need user to be linked to my app, I send a login button to the user like this:

  http.post(`https://graph.facebook.com/v2.6/me/messages?access_token=${PAGE_ACCESS_TOKEN}`, {
                "recipient": {
                    "id": "2829343507138856"
                },
                "message": {
                    "attachment": {
                        "type": "template",
                        "payload": {
                            "template_type": "button",
                            "text": "Try the log in button!",
                            "buttons": [
                                {
                                    "type": "account_link",
                                    "url": "https://dev-sysborg.auth0.com/authorize?response_type=code&client_id=VYierFrTxMb1Kky3DfPEqUHXaShdmH43"
                                }
                            ]
                        }
                    }
                }
            }).then(() => {
                response.send("ok")
            })

user see this login button like this on their messenger screen:

image

when user try to login by pressing the button, it pops up a new window and open login screen in that window:
image

and after entering credentials it redirects to a screen which says Account linking failed,

something like this:
image

I am sure there is nothing wrong with the Auth0 configuration because it is working fine with postman and connected very well with some other platforms

someone said I must have to subscribe to account linking event so I have subscribed to these three events: messages, messaging_postbacks, messaging_account_linking

I am Stuck at the end of the story,
Please help me out

from original-coast-clothing.

jorgeluiso avatar jorgeluiso commented on August 22, 2024

Have you whitelisted the domain https://dev-sysborg.auth0.com? Try it an check in the meantime this issue is open and will be closed as soon a we shipped the account linking demo.

here is the devdocs of it but I assume that you already know that.
https://developers.facebook.com/docs/messenger-platform/identity/account-linking/

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

Hi @jorgeluiso

your mentioned document doesnt talk about whitelisting domain, can you please check if you send me correct document link, or may be you can tell me directly how can I whitelist my domain
thanks in advance :-)

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

@jorgeluiso

I have found domain whitelisting inside facebook developer app > setting > advanced setting
but is doesnt help :-(

screenshots:

image

image

from original-coast-clothing.

jorgeluiso avatar jorgeluiso commented on August 22, 2024

Try whitelisting the domain at the page level, on the messenger platform settings of the page.
https://www.facebook.com//settings/?tab=messenger_platform

If that does not work, rest assure that we are going to implement this and close this issue. Alternatively you can implement you own account linking leveraging the extension sdk to get the psid on a webview rendered as an extension. On that webview you can provide a login flow were you then can match your user id with the psid provided by the extension SDK.
https://developers.facebook.com/docs/messenger-platform/guides/chat-extensions/

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

Hi @jorgeluiso,
I visited the page setting and I put the url there in whitelist but still the problem is same
can you please guide me which is the best place where i can ask for support

Thanks,
Malik.

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

do something @jorgeluiso @rubycalling

from original-coast-clothing.

mInzamamMalik avatar mInzamamMalik commented on August 22, 2024

https://stackoverflow.com/questions/56695996/trouble-in-facebook-messenger-account-linking-process

from original-coast-clothing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.