Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfset session.fbAPI = createObject("component","facebook").init(session.fbaccesstoken)>
- <cfset variables.userID = StructFind(session.fbAPI.getMe(),'id') />
- <cfset variables.facebookPostURL = "https://graph.facebook.com/#variables.userID#/feed" />
- <cfhttp method="post" url="#variables.facebookPostURL#">
- <cfhttpparam type="URL" value="#attributes.vra_vraag#" name="message">
- <cfhttpparam type="URL" value="#session.fbaccesstoken#" name="access_token">
- </cfhttp>
- <cfhttp url="https://graph.facebook.com/me/feed" method="post">
- <cfhttpparam name="access_token" value="#session.fbaccesstoken#" type="formfield">
- <cfhttpparam name="message" value="A short message" type="formfield">
- <cfhttpparam name="link" value="" type="formfield">
- <cfhttpparam name="name" value="Your name" type="formfield">
- <cfhttpparam name="caption" value="caption" type="formfield">
- <cfhttpparam name="description" value="#attributes.vra_vraag#" type="formfield">
- <cfhttpparam name="picture" value="" type="formfield">
- </cfhttp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement