C# Class Facebook.Graph.Web.Mvc.ControllerExtensions

Show file Open project: prabirshrestha/opengraph.net

Public Methods

Method Description
CanvasIFrameRedirect ( this controller, string targetUrl ) : System.Web.Mvc.ActionResult

Redirects the outer canvas frame to the specified URL.

CanvasIFrameRedirectToRoute ( this controller, string applicationUri, object routeValues ) : System.Web.Mvc.ActionResult
CanvasIFrameRedirectToRoute ( this controller, string applicationUri, string routeName ) : System.Web.Mvc.ActionResult

Renders code to cause the outer frame to refresh and redirect to the specified route, relative to the apps.facebook.com domain.

CanvasIFrameRedirectToRoute ( this controller, string applicationUri, string routeName, object routeParameters ) : System.Web.Mvc.ActionResult

Method Details

CanvasIFrameRedirect() public static method

Redirects the outer canvas frame to the specified URL.
public static CanvasIFrameRedirect ( this controller, string targetUrl ) : System.Web.Mvc.ActionResult
controller this The controller on which to invoke the action.
targetUrl string The URL to which to redirect.
return System.Web.Mvc.ActionResult

CanvasIFrameRedirectToRoute() public static method

public static CanvasIFrameRedirectToRoute ( this controller, string applicationUri, object routeValues ) : System.Web.Mvc.ActionResult
controller this
applicationUri string
routeValues object
return System.Web.Mvc.ActionResult

CanvasIFrameRedirectToRoute() public static method

Renders code to cause the outer frame to refresh and redirect to the specified route, relative to the apps.facebook.com domain.
public static CanvasIFrameRedirectToRoute ( this controller, string applicationUri, string routeName ) : System.Web.Mvc.ActionResult
controller this The controller from which to call this method.
applicationUri string The application URI root.
routeName string The name of the route.
return System.Web.Mvc.ActionResult

CanvasIFrameRedirectToRoute() public static method

public static CanvasIFrameRedirectToRoute ( this controller, string applicationUri, string routeName, object routeParameters ) : System.Web.Mvc.ActionResult
controller this
applicationUri string
routeName string
routeParameters object
return System.Web.Mvc.ActionResult