to make a long story short, this request:
$json = "{
\"restURI\": \"http://$server:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/$appName/pushpublish/mapentries/$entryName\",
\"serverName\":\"_defaultServer_\",
\"appName\": \"$appName\",
\"appInstance\": \"$roomID\",
\"sourceStreamName\": \"$streamName\",
\"entryName\": \"$entryName\",
\"profile\": \"$profile\",
\"host\": \"$fbStreamURL\",
\"application\":\"$appName\",
\"streamName\":\"$streamName\",
\"facebook.accessToken\": \"$fbToken\",
\"facebook.privacy\": \"$facebookPrivacy\",
\"facebook.title\": \"$nom\",
\"facebook.destId\": \"$fbID\",
\"facebook.destType\": \"$destinationType\",
\"facebook.streamId\": \"$fbStreamID\",
\"destinationName\": \"facebook\",
\"facebook.description\": \"$desc\",
\"facebook.destName\": \"facebook\",
\"facebook.streamURL\": \"$fbStreamURL\"
}'";
generate this code:
61245695458031={"entryName":"FB61245695458031", "profile":"rtmp-facebook", "application":"videochat", "facebook.accessToken":"xxxxx", "host":"rtmp://rtmp-api.facebook.com:80/rtmp/xxx?ds=1&a=xxx", "appInstance":"1", "facebook.privacy":"onlyMe", "facebook.title":"My Live", "facebook.destId":"xxx", "facebook.destType":"timeline", "streamName":"61245695458031", "facebook.destName":"facebook"}