Class

FB_Graph_Question

Methods

setQuestion

setQuestion()

Set question

The text of the question

Parameters:string
Return type:void

setOptions

setOptions()

Set options

Array of answer options

Parameters:array
Return type:void

setAllowNewOptions

setAllowNewOptions()

Set allow new options

Allows other users to add new options (True by default)

Parameters:boolean
Return type:void

setPublished

setPublished()

Set published

Whether a post is published. Default is published.

Requires extended permissions: publish_stream, manage_pages Only available when publishing to a page.

Parameters:boolean
Return type:void

setScheduledPublishTime

setScheduledPublishTime()

Set scheduled publish time

Time when the page post should go live, this should be between 10 mins and 6 months from the time of publishing the post.

Requires extended permissions: publish_stream, manage_pages Only available when publishing to a page.

Parameters:string – a unix timestamp
Return type:void

__construct

__construct()

Constructor

Requires extended permission: publish_stream

Parameters:string – the text of the question
Return type:void

create

create()

Create a question

Parameters:string|int – the profile ID (eg - me)
Return type:string the new question ID

Constants

CONNECTION

Project Versions

Table Of Contents

This Page