Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-12 Thread David Six2

Jeff,

Unfortunately, due to a bug, Graph API is not currently able to post images
to a page event on facebook.  But I've finally got the post event with image
code working for the old REST API.

David

On Mon, Oct 11, 2010 at 10:58 AM, Jeff Gladnick wrote:

>
> I think there is a function in the facebook graph API that you can use:
> http://facebookgraph.riaforge.org/
>
>
> > Howdy folks,
> >
> > I'm working on a ColdFusion application that creates events in
> > Facebook.  I have no trouble authenticating users and creating simple
> > events, but as soon as I add a picture with CFHTTPPARAM, I get a blank
> > response from Facebook.
> >
> > Here's the code I have that works:
> >
> > -
> >
> > 
> >
> > https://api.facebook.com/method/events.create?#params#";
> > method="get">
> >
> > -
> >
> > Given the correct permissions and authentication, this works great.
> > But as soon as I change my CFHTTP statement, the code fails.  This is
> > the code I'm using:
> >
> > -
> >
> > https://api.facebook.com/method/events.create?#params#";
> > method="post" multipart="yes">
>
> > 
> > 
> >
> > -
> >
> > Anyone have any ideas?  It might be that Facebook is looking for some
> > kind of a header, but I'm not sure what that would be.
> >
> > Thanks in advance!
> > David Six
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338079
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-12 Thread David Six2

Michael,

This did it, if I pass in all the parameters as formfields and the image,
this works.  Thanks very much!

https://api.facebook.com/method/events.create";
method="post">



 

Fantastic!
David

On Mon, Oct 11, 2010 at 5:14 PM, Michael Grant  wrote:

>
> Change type="url" to type="formfield"
>
> On Sun, Oct 10, 2010 at 1:43 PM, David Six2 
> wrote:
>
> >
> > > Perhaps Facebook is looking for the params in form variables rather
> > > than the URL since it's a post?
> >
> > Thanks for looking at this.  I tried this:
> >
> > https://api.facebook.com/method/events.create";
> method="post">
> > > encoded="no" type="url">
> > type="url">
> > 
> >
> > And I get the same response, nothing returned from Facebook and nothing
> > posted to events.  I tried a few different post combinations and actually
> I
> > can't get post to work at all, even though GET works fine.  Very weird.
> >
> > I'll keep plugging at it.
> >
> > David
> >
> > On Sun, Oct 10, 2010 at 6:07 AM, James Holmes  > >wrote:
> >
> > >
> > > Perhaps Facebook is looking for the params in form variables rather
> > > than the URL since it's a post?
> > >
> > > --
> > > WSS4CF - WS-Security framework for CF
> > > http://wss4cf.riaforge.org/
> > >
> > >
> > >
> > > On 10 October 2010 18:59, David Six  wrote:
> > > >
> > > > https://api.facebook.com/method/events.create?#params#";
> > > method="post" multipart="yes">
> > > > > > name="image.jpg" mimetype="image/jpeg">
> > > > 
> > >
> > >
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338078
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-12 Thread Jeff Gladnick

I think there is a function in the facebook graph API that you can use:
http://facebookgraph.riaforge.org/


> Howdy folks,
> 
> I'm working on a ColdFusion application that creates events in 
> Facebook.  I have no trouble authenticating users and creating simple 
> events, but as soon as I add a picture with CFHTTPPARAM, I get a blank 
> response from Facebook.
> 
> Here's the code I have that works:
> 
> -
> 
> 
>   
> https://api.facebook.com/method/events.create?#params#"; 
> method="get">
> 
> -
> 
> Given the correct permissions and authentication, this works great.  
> But as soon as I change my CFHTTP statement, the code fails.  This is 
> the code I'm using:
> 
> -
> 
> https://api.facebook.com/method/events.create?#params#"; 
> method="post" multipart="yes">

> 
> 
> 
> -
> 
> Anyone have any ideas?  It might be that Facebook is looking for some 
> kind of a header, but I'm not sure what that would be.
> 
> Thanks in advance!
> David Six 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338059
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-12 Thread Michael Grant

Change type="url" to type="formfield"

On Sun, Oct 10, 2010 at 1:43 PM, David Six2  wrote:

>
> > Perhaps Facebook is looking for the params in form variables rather
> > than the URL since it's a post?
>
> Thanks for looking at this.  I tried this:
>
> https://api.facebook.com/method/events.create"; method="post">
> encoded="no" type="url">
>
> 
>
> And I get the same response, nothing returned from Facebook and nothing
> posted to events.  I tried a few different post combinations and actually I
> can't get post to work at all, even though GET works fine.  Very weird.
>
> I'll keep plugging at it.
>
> David
>
> On Sun, Oct 10, 2010 at 6:07 AM, James Holmes  >wrote:
>
> >
> > Perhaps Facebook is looking for the params in form variables rather
> > than the URL since it's a post?
> >
> > --
> > WSS4CF - WS-Security framework for CF
> > http://wss4cf.riaforge.org/
> >
> >
> >
> > On 10 October 2010 18:59, David Six  wrote:
> > >
> > > https://api.facebook.com/method/events.create?#params#";
> > method="post" multipart="yes">
> > > > name="image.jpg" mimetype="image/jpeg">
> > > 
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338053
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-10 Thread David Six2

> Perhaps Facebook is looking for the params in form variables rather
> than the URL since it's a post?

Thanks for looking at this.  I tried this:

https://api.facebook.com/method/events.create"; method="post">




And I get the same response, nothing returned from Facebook and nothing
posted to events.  I tried a few different post combinations and actually I
can't get post to work at all, even though GET works fine.  Very weird.

I'll keep plugging at it.

David

On Sun, Oct 10, 2010 at 6:07 AM, James Holmes wrote:

>
> Perhaps Facebook is looking for the params in form variables rather
> than the URL since it's a post?
>
> --
> WSS4CF - WS-Security framework for CF
> http://wss4cf.riaforge.org/
>
>
>
> On 10 October 2010 18:59, David Six  wrote:
> >
> > https://api.facebook.com/method/events.create?#params#";
> method="post" multipart="yes">
> > name="image.jpg" mimetype="image/jpeg">
> > 
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Uploading photos to Facebook - ColdFusion & REST API

2010-10-10 Thread James Holmes

Perhaps Facebook is looking for the params in form variables rather
than the URL since it's a post?

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 10 October 2010 18:59, David Six  wrote:
>
> https://api.facebook.com/method/events.create?#params#"; 
> method="post" multipart="yes">
>     mimetype="image/jpeg">
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm