|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Method to post Facebook Wall Feed on a ColdFusion page?
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350456
ColdFusion 9.0.1
Windows Server 2008 R2
Hi. I know this has been discussed before, but I can't locate a working solution.
Has anybody been able to get ColdFusion to read and parse JSON output from a
Facebook Wall Feed, and then display that wall feed on a ColdFusion page?
I know that I need to get an AppID, App Secret, and Access Token from Facebook.
I've done that. I have downloaded and begun to explore this SDK:
http://facebooksdk.riaforge.org/
But I am wondering if anyone else has tackled this problem.
Thank you for any ideas or leads.
Eric
Author: John M Bliss
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350457
Have you looked at:
http://facebooksdk.riaforge.org
http://facebookgraph.riaforge.org
http://cffacebook.riaforge.org
----- Excess quoted text cut - see Original Post for more -----
Author: John M Bliss
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350458
Sorry. Just read your post more carefully. Please disregard. :-)
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Scott
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350459
I haven't checked in awhile, but the wall is off limits. There are however
other Social Options you can look at.
https://developers.facebook.com/docs/plugins/
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
----- Excess quoted text cut - see Original Post for more -----
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350460
Hi, Andrew and John,
Thank you for these comments. I haev set up the Affinitiz SDK here:
http://www.coalcountryteam.org/affinitiz-facebook-cf-sdk-29462bd/
If you click on the example (Example link, in upper left part of page), you will
see that I get an error that an API is missing.
Error Occurred While Processing Request
Could not find the ColdFusion component or interface
facebook.sdk.FacebookGraphAPI.
Ensure that the name is correct and that the component or interface exists.
The error occurred in
C:/websites/www.coalcountryteam.org/affinitiz-facebook-cf-sdk-29462bd/examples/website/index.cfm:
line 28
26 : SCOPE = "publish_stream";
27 :
28 : if (APP_ID is "" or SECRET_KEY is "") {
29 : // App not configured
30 : facebookGraphAPI = new FacebookGraphAPI();
Odd, to get this error right out of the box.
I am going to keep playing with this.
Andrew, also, the https://developers.facebook.com/docs/plugins/
might be useful; I had seen that page, but I was not sure that it has what I
need. I will review more closely.
(Yes, obviously, I am rushing through this task. Sorry. I need to slow down and
read everything.) =)
Do you have any idea about the missing facebook.sdk.FacebookGraphAPI?
Thank you again.
Eric
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Scott
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350461
Looks like you didn't import that, as you are not using its full path.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
----- Excess quoted text cut - see Original Post for more -----
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350462
Yes. I saw that. Hmmm. I have been reading up on the SDK documentation:
https://github.com/affinitiz/facebook-cf-sdk/wiki/Installation
it looks like installation is as simple as copying over the unzipped folder
to the root of the web site, which I have done. It looks like I need to
create a mapping to the CFC files in the /sdk/ folder. I will work on that.
Also, Andrew, I appreciate your "ramblings" on your
http://www.andyscott.id.au/ blog. =)
Eric
Looks like you didn't import that, as you are not using its full path.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
----- Excess quoted text cut - see Original Post for more -----
exists.
>
> The error occurred in C:/websites/
>
www.coalcountryteam.org/affinitiz-facebook-cf-sdk-29462bd/examples/website/i
ndex.cfm:
----- Excess quoted text cut - see Original Post for more -----
I
----- Excess quoted text cut - see Original Post for more -----
however
----- Excess quoted text cut - see Original Post for more -----
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350463
Hmm. I got it working. Kind of:
http://www.coalcountryteam.org/affinitiz-facebook-cf-sdk-29462bd/examples/we
bsite/
I figured out the mapping and I fixed a syntax error in one of the CFCs.
I don't think this tool is going to do what I need, though. I just need to
post public FB wall information on a page.
I think the Activity Feed FB plugin might be the answer:
https://developers.facebook.com/docs/reference/plugins/activity/
I'll try that next. Thank you again for your ideas.
Eric
Author: Andrew Scott
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350464
This SDK can, as it uses the same methods as the API's covered. The thing
is that you need to know how to do it.
https://developers.facebook.com/docs/reference/api/
Shows everything that you can do, what you can get back how to post etc.
You then use this SDK to then make that connection and take care of any
results that may or may not come back.
So depending on your requirements, you can use the Social Graph to post to
your facebook page, that will automatically get seen by people who have
either liked / subscribed to the page.
If what you are saying is what you need then you will need to look at
https://developers.facebook.com/docs/reference/api/post/ and
then use the
SDK to achieve this for you.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
----- Excess quoted text cut - see Original Post for more -----
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350465
Hi, Andrew,
I've been studying the Facebook Developers' Documentation for most of the
weekend. I have also been doing a lot of researching and testing. I have
been able to create a test Facebook Application ("App"), and obtain the App
ID, App Secret, and an App access token. I have also figured out that the
Facebook "Graph" is just the FB database. =) That metaphor had me confused
for a while because I was looking around for an actual graph. Yes, I can be
literal minded, especially when I need a procedure to complete a task, and
am feeling tense and vulnerable about not having completed it.
>>> So depending on your requirements, you can use the Social Graph to
post
to your facebook page, that will automatically get seen by people who have
either liked / subscribed to the page.
Actually, I need to achieve the reverse; I need to post the activity feed,
or the status updates of a particular Facebook page to a particular web
site. The ColdFusion Facebook SDK seems to want to allow me to post posts to
a Facebook page, but does not allow me to extract the activity feed -- at
least, that is what I think. Of course I could be missing something.
>>> The thing is that you need to know how to do it.
I agree 100% and I'm continuing to work on this task. I'm continuing to
study the Facebook documentation. Thank you again for your ideas and
support. Have a great evening.
Eric
This SDK can, as it uses the same methods as the API's covered. The thing is
that you need to know how to do it.
https://developers.facebook.com/docs/reference/api/
Shows everything that you can do, what you can get back how to post etc.
You then use this SDK to then make that connection and take care of any
results that may or may not come back.
So depending on your requirements, you can use the Social Graph to post to
your facebook page, that will automatically get seen by people who have
either liked / subscribed to the page.
If what you are saying is what you need then you will need to look at
https://developers.facebook.com/docs/reference/api/post/ and
then use the
SDK to achieve this for you.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
>
> Hmm. I got it working. Kind of:
>
>
>
http://www.coalcountryteam.org/affinitiz-facebook-cf-sdk-29462bd/examples/we
bsite/
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Scott
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350466
Ok I think FaceBookGraph is a bit confusing, but having said that so is the
docs at times.
Well if you need the reverse then the activity or news feed is maybe what
your looking for, but wall posts are out of the question. You can use the
SDK to read the news, I have never done it mysefl, but if you look at all
the objects news is one of them.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
----- Excess quoted text cut - see Original Post for more -----
Author: Guust Nieuwenhuis
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350468
I made a website for my brothers band, www.mastercab.be, and I'm connecting
to there Facebook page to get the wall posts they made and display them on
there website.
You'll need to create a Facebook app to get an access_token, but I believe
you've already done that. Below a link to the code I'm using to connect to
Facebook and display the posts. You'll have to add your page name and
access_token at the beginning of the file.
https://gist.github.com/e84459d04cc78ad47781
Kind regards,
Guust Nieuwenhuis
Adobe Community Professional
Mobile: +32 497 33 04 91
Skype: guustnieuwenhuis
Email: info@lagaffe.be
Ok I think FaceBookGraph is a bit confusing, but having said that so is
the
docs at times.
Well if you need the reverse then the activity or news feed is maybe what
your looking for, but wall posts are out of the question. You can use the
SDK to read the news, I have never done it mysefl, but if you look at all
the objects news is one of them.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
>
> Hi, Andrew,
>
> I've been studying the Facebook Developers' Documentation for most of
the
> weekend. I have also been doing a lot of researching and testing. I have
> been able to create a test Facebook Application ("App"), and obtain the
App
> ID, App Secret, and an App access token. I have also figured out that
the
> Facebook "Graph" is just the FB database. =) That metaphor had me
confused
> for a while because I was looking around for an actual graph. Yes, I can
be
> literal minded, especially when I need a procedure to complete a task,
and
> am feeling tense and vulnerable about not having completed it.
>
> >>> So depending on your requirements, you can use the Social Graph
to
post
> to your facebook page, that will automatically get seen by people who
have
> either liked / subscribed to the page.
>
> Actually, I need to achieve the reverse; I need to post the activity
feed,
> or the status updates of a particular Facebook page to a particular web
> site. The ColdFusion Facebook SDK seems to want to allow me to post
posts
> to
> a Facebook page, but does not allow me to extract the activity feed --
at
----- Excess quoted text cut - see Original Post for more -----
Author: Eric Bourland
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:63806#350476
Dear Guust,
I will try this today. Thank you very much! All best,
Eric
I made a website for my brothers band, www.mastercab.be, and I'm connecting
to there Facebook page to get the wall posts they made and display them on
there website.
You'll need to create a Facebook app to get an access_token, but I believe
you've already done that. Below a link to the code I'm using to connect to
Facebook and display the posts. You'll have to add your page name and
access_token at the beginning of the file.
https://gist.github.com/e84459d04cc78ad47781
Kind regards,
Guust Nieuwenhuis
Adobe Community Professional
Mobile: +32 497 33 04 91
Skype: guustnieuwenhuis
Email: info@lagaffe.be
Ok I think FaceBookGraph is a bit confusing, but having said that so is the
docs at times.
Well if you need the reverse then the activity or news feed is maybe what
your looking for, but wall posts are out of the question. You can use the
SDK to read the news, I have never done it mysefl, but if you look at all
the objects news is one of them.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
>
> Hi, Andrew,
>
> I've been studying the Facebook Developers' Documentation for most of
the
> weekend. I have also been doing a lot of researching and testing. I have
> been able to create a test Facebook Application ("App"), and obtain the
App
> ID, App Secret, and an App access token. I have also figured out that
the
> Facebook "Graph" is just the FB database. =) That metaphor had me
confused
> for a while because I was looking around for an actual graph. Yes, I can
be
> literal minded, especially when I need a procedure to complete a task,
and
> am feeling tense and vulnerable about not having completed it.
>
> >>> So depending on your requirements, you can use the Social Graph
to
post
> to your facebook page, that will automatically get seen by people who
have
> either liked / subscribed to the page.
>
> Actually, I need to achieve the reverse; I need to post the activity
feed,
> or the status updates of a particular Facebook page to a particular web
> site. The ColdFusion Facebook SDK seems to want to allow me to post
posts
> to
> a Facebook page, but does not allow me to extract the activity feed --
at
----- Excess quoted text cut - see Original Post for more -----
|
May 23, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||