HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


problems publishing news / and facebook

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#68698 (In Topic #14587)

Honoured member

Hi,
I thought I had my facebook intergration setup correctly. I've followed all the steps that I can find, and don't understand the error I'm getting. If someone has any exerience with this would you please take a look at the following and tell me what it means and what I need to do to correct it? Thanks in advance


Fatal error
: Uncaught exception 'FacebookRestClientException' with message 'The user hasn't
authorized the application to perform this action' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method('facebook.stream…', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish('Chip & Tracy's …', Array, Array, '1765880242',
'1765880242') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB('Chip
& Tracy's …', 'This week's On …', NULL, NULL, '', Array, Array, Array) #3 /home/catcom/public_html/sources/news.php(177):
facebook_wall_news_update(1, 'This week's On …', '', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news('This week's On …', '', 'Chip', 1, 0, 1, 0, '', 'Hey gang,?Thing…',
5, Array, 1303833687, NULL, 0, NULL, NULL, '') #5 /home/catcom/public_html/sources/aed_mo
in
/home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php on line 3045
Front page
Skip navigation
Site
 |
Forums
 |
Account
 |
Content Management
 |
Admin Zone
adminzone/index.php?page=admin_menus&type=edit&id=zone_menu&
redirect=http%3A%2F%2Fchipandtracy.com%2Fcms%2Findex.php%3Fpa
ge%3Dcms_news%26type%3Dmisc&wide=1&clickable_sections=0
Lost? Search for admin options here →
Administrative search
New window
Search
 Status
 Audit
 Security
 Setup
 Structure
 Style
 Tools
 Content
 Docs
You are here
News
 > An error has occurred
An error has occurred
PHP ERROR [1] Uncaught exception 'FacebookRestClientException' with message 'The
user hasn't authorized the application to perform this action' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method('facebook.stream…', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish('Chip & Tracy's …', Array, Array, '1765880242',
'1765880242') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB('Chip
& Tracy's …', 'This week's On …', NULL, NULL, '', Array, Array, Array) #3 /home/catcom/public_html/sources/news.php(177):
facebook_wall_news_update(1, 'This week's On …', '', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news('This week's On …', '', 'Chip', 1, 0, 1, 0, '', 'Hey gang,?Thing…',
5, Array, 1303833687, NULL, 0, NULL, NULL, '') #5 /home/catcom/public_html/sources/aed_mo
in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php on line
3045 (version: 6.1.1, PHP version: 5.2.14, URL: /cms/index.php?page=cms_news&type=_ad&redirect=http%3A%2F%2F
chipandtracy.com%2Fsite%2Findex.php%3Fpage%3Dstart&uploading=
1)
Here is the stack trace:
Below is a stack trace revealing the state the software was in when the error occurred.
If this represents a bug in the unmodified software, you may want to check ocPortal
website for a fix, and if there isn't one, report this as a bug. Please note that
merely posting a stack trace is not sufficient for us to solve your problem; the
stack trace is just an aid that presents us with additional information. We still
need to know the error message, what you tried to do, how you tried to do it, version
numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so
that we can fix it for you promptly.
File
'/home/catcom/public_html/sources/failure.php'
Line
'659'
Function
'get_html_trace'
Args
File
'/home/catcom/public_html/sources/global2.php'
Line
'923'
Function
'_fatal_exit'
Args
'PHP ERROR [1] Uncaught exception \'FacebookRestClientException\' with message \'The
user hasn\'t authorized the application to perform this action\' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method(\'facebook.stream…\', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish(\'Chip & Tracy\'s …\', Array, Array, \'1765880242\',
\'1765880242\') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB(\'Chip
& Tracy\'s …\', \'This week\'s On …\', NULL, NULL, \'\', Array, Array, Array)
#3 /home/catcom/public_html/sources/news.php(177): facebook_wall_news_update(1, \'This
week\'s On …\', \'\', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news(\'This week\'s On …\', \'\', \'Chip\', 1, 0, 1, 0, \'\', \'Hey gang,?Thing…\',
5, Array, 1303833687, NULL, 0, NULL, NULL, \'\') #5 /home/catcom/public_html/sources/aed_mo
in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php on line
3045'
File
'/home/catcom/public_html/sources/failure.php'
Line
'209'
Function
'fatal_exit'
Args
'PHP ERROR [1] Uncaught exception \'FacebookRestClientException\' with message \'The
user hasn\'t authorized the application to perform this action\' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method(\'facebook.stream…\', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish(\'Chip & Tracy\'s …\', Array, Array, \'1765880242\',
\'1765880242\') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB(\'Chip
& Tracy\'s …\', \'This week\'s On …\', NULL, NULL, \'\', Array, Array, Array)
#3 /home/catcom/public_html/sources/news.php(177): facebook_wall_news_update(1, \'This
week\'s On …\', \'\', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news(\'This week\'s On …\', \'\', \'Chip\', 1, 0, 1, 0, \'\', \'Hey gang,?Thing…\',
5, Array, 1303833687, NULL, 0, NULL, NULL, \'\') #5 /home/catcom/public_html/sources/aed_mo
in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php on line
3045'
File
'/home/catcom/public_html/sources/global2.php'
Line
'797'
Function
'_ocportal_error_handler'
Args
'error'
1
'Uncaught exception \'FacebookRestClientException\' with message \'The user hasn\'t
authorized the application to perform this action\' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method(\'facebook.stream…\', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish(\'Chip & Tracy\'s …\', Array, Array, \'1765880242\',
\'1765880242\') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB(\'Chip
& Tracy\'s …\', \'This week\'s On …\', NULL, NULL, \'\', Array, Array, Array)
#3 /home/catcom/public_html/sources/news.php(177): facebook_wall_news_update(1, \'This
week\'s On …\', \'\', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news(\'This week\'s On …\', \'\', \'Chip\', 1, 0, 1, 0, \'\', \'Hey gang,?Thing…\',
5, Array, 1303833687, NULL, 0, NULL, NULL, \'\') #5 /home/catcom/public_html/sources/aed_mo'
'/home/catcom/public_html/sources/facebook/facebookapi_php5_
restlib.php'
3045
File
'/home/catcom/public_html/sources/global2.php'
Line
'737'
Function
'ocportal_error_handler'
Args
1
'Uncaught exception \'FacebookRestClientException\' with message \'The user hasn\'t
authorized the application to perform this action\' in /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php:3045
Stack trace: #0 /home/catcom/public_html/sources/facebook/facebookapi_php5_r
estlib.php(885):
FacebookRestClient->call_method(\'facebook.stream…\', Array) #1 /home/catcom/public_html/sources/facebook_publish.php(72):
FacebookRestClient->stream_publish(\'Chip & Tracy\'s …\', Array, Array, \'1765880242\',
\'1765880242\') #2 /home/catcom/public_html/sources/news2.php(96): publish_to_FB(\'Chip
& Tracy\'s …\', \'This week\'s On …\', NULL, NULL, \'\', Array, Array, Array)
#3 /home/catcom/public_html/sources/news.php(177): facebook_wall_news_update(1, \'This
week\'s On …\', \'\', 1, 5, false) #4 /home/catcom/public_html/cms/pages/modules/cms_news.php(322)
:
add_news(\'This week\'s On …\', \'\', \'Chip\', 1, 0, 1, 0, \'\', \'Hey gang,?Thing…\',
5, Array, 1303833687, NULL, 0, NULL, NULL, \'\') #5 /home/catcom/public_html/sources/aed_mo'
'/home/catcom/public_html/sources/facebook/facebookapi_php5_
restlib.php'
3045
Function
'catch_fatal_errors'
Args
Parameters
post_parsed
MAX_FILE_SIZE
134217728
label_for__post
News article
comcode__title
1
label_for__title
Title
title
This week\'s On Stage
require__title
1
label_for__main_news_category
Main category
main_news_category
5
require__main_news_category
1
f_face
/
f_size
f_colour
post
Hey gang, Things have been real busy around here, and I\'ve not had the time to put
out a news letter in a couple of weeks. Hope this finds you well. Of course Friday
night will find me with CDR at the River Cafe in Adger Alabama. If you by chance
find your self down that way stop in and see us. I\'ll be at Margarita Grill, in
Pelham, Saturday afternoon from 3 to 6. Yep, that\'s not a typo. For those of you
that have been having problems making it out to the night shows, you may find it
easier to make the afternoon one this Saturday. As always you can visit the site
for any and all updates to our calendar. Have a good week.
hidFileID_file1
-1
attachmenttype1
island
caption1
comcode__news
1
label_for__news
News summary
news
news_parsed
label_for__validated
Validated
validated
1
tick_on_form__validated
0
require__validated
0
label_for__news_category
Secondary categories
require__news_category
0
label_for__file
Image
require__file
0
hidFileID_file
-1
label_for__schedule
Publication time
schedule_day
schedule_month
schedule_year
schedule_hour
schedule_minute
require__schedule
0
label_for__allow_comments
Allow comments
allow_comments
1
require__allow_comments
1
label_for__notes
Notes
notes
pre_f_notes
1
require__notes
0
label_for__meta_keywords
Keywords
meta_keywords
require__meta_keywords
0
label_for__meta_description
Concise description
meta_description
require__meta_description
0
comcode__post
1
posting_ref_id
10530
http_referer
http://chipandtracy.com/cms/index.php?page=cms_news&type=ad&redirect=http%3A%2F%2Fchipandtracy.com%2Fsite%2Findex.php%3Fpage%3Dstart
Help / advice
There is a
tutorial which covers this feature
.
Bookmarks
Chat with other webmasters
Copyright © (Chip & Tracy's Place) 2011
Chip & Tracy's Place
 ·
Keyboard shortcuts
 ·
Mobile version
 ·
Logout from 'Chip'
Back to the top
 
Posted
Rating:
#68705
Avatar

I haven't tested this myself in a long time, if I ever have (one of our former developers wrote the functionality a few years ago now). I'll give it a try when I can, Facebook may have changed something.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68842
Avatar

Our Facebook support was completely broken as Facebook have rewritten their authorisation system since we implemented it. I have completely rewritten the Facebook support (I'm talking about this built-in news syndication functionality, not the non-bundled addon which I know you are also playing with). This rewritten support will be in 4.2 which I am going to make an RC release of very soon.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: