Giter VIP home page Giter VIP logo

Comments (3)

kapilkd13 avatar kapilkd13 commented on June 15, 2024 1

hi bil, you can create function getMessageButtonObject and getMessageElementObject which returns
their respective objects(pass appropriate args) . You can store these objects in array and later pass that array to structuredMessage. I hope this helps.

from fb-messenger-php.

kapilkd13 avatar kapilkd13 commented on June 15, 2024

Hi bol,
Fb response suggests it didn't received recipient ID. Make sure to include
that in your request. Also Is this problem occurring only with generic
message or with any message type. Are you able to send simple Imagemessage.
Also it would be helpful if can upload you json response.
Kapil
On 15-Aug-2016 9:20 am, "Bilal Luqman Bayasut" [email protected]
wrote:

thanks kapilk, But I've tried replicated their respective returned object
but still it can't work.
In fact, I've constructed my own json Obj and send it to fb via cURL, but
fb returned recipient required.
any idea?

` // $ch = curl_init($app->fb_api_url.'me/messages?access_token='.$
app->token);
// //Tell cURL that we want to send a POST request.
// curl_setopt($ch, CURLOPT_POST, 1);
// //Attach our encoded JSON string to the POST fields.
// curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($another_result));
// //Set the content type to application/json
// curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept' =>
'application/json'));

                //  $result = curl_exec($ch);
                //  curl_close($ch);
                // print_r(json_decode($result,true));

`

there is my code


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHwULkuDenlam1UbO59NzKKEaUKTbBphks5qf-IUgaJpZM4Jj80g
.

from fb-messenger-php.

wittfabian avatar wittfabian commented on June 15, 2024

solved?

from fb-messenger-php.

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.