sp-dev-fx-webparts/samples/react-facebook-plugin
Hugo Bernier 0164647fcb
Update README.md
2020-11-08 23:21:22 -05:00
..
.vscode Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
assets Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
config Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
src/webparts/facebookPage Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
.editorconfig Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
.gitignore Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
.yo-rc.json Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
README.md Update README.md 2020-11-08 23:21:22 -05:00
gulpfile.js Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
package-lock.json Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
package.json Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
tsconfig.json Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
tslint.json Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00

README.md

Facebook Page Social Plugin

Summary

This sample shows how to implement iFrame-based web parts with a dynamic responsive behavior on the example of Facebook Page Social Plugin.

The key differences between using Embed web part and current example are the strong parametrization of web part properties and responsive behavior of the iFrame depending on parent container width changes.

preview

Used SharePoint Framework Version

drop

Applies to

Solution

Solution Author(s)
react-facebook-plugin Andrew Koltyakov (@AndrewKoltyakov)

Version history

Version Date Comments
1.0 August 26, 2018 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

Local testing

  • Clone the repository
  • cd to web part's project folder
  • In the command line run:
    • npm install
    • gulp serve

Deployment

Follow the usual SPFx deployment process up to your preferences.

Features

This web part illustrates the following concepts on top of the SharePoint Framework:

  • Observe parent container width and dynamic adaptation of absolute-width'ed HTML elements
  • React