Comments (3)
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.
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.
solved?
from fb-messenger-php.
Related Issues (20)
- Can't send local file HOT 4
- Quick Replies for Phone and Email-- Need to Update Source Code HOT 7
- Hi, There I have Error: SSL certificate problem: unable to get local issuer certificate HOT 5
- Method call() not working with http_build_query($data) for CURLOPT_POSTFIELDS HOT 9
- Structured Message TYPE_GENERIC stopped working HOT 15
- Photo url seems not visible in MessageElement HOT 3
- Regarding persistent_menu, set/update or case for the older users HOT 5
- NON_PROMOTIONAL_SUBSCRIPTION is a tag not a type HOT 4
- last_ad_referral & is_payment_enabled HOT 1
- How to send pre-formatted json response HOT 2
- Send to all users using batch messages HOT 1
- version post 2.8 HOT 1
- Chatbot doesn't work at ALL HOT 4
- missed ; on FbBotApp.php HOT 2
- Add tests and coverage via travis-ci HOT 5
- error on line 71 FbBotApp.php
- VideoMessage HOT 13
- Update minimum PHP version HOT 8
- $bot -> send does not work HOT 1
- How can i send message to group chat rather than user id ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fb-messenger-php.